This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$._data($('.selector').get(0), "events") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sample of core/misc/states.js starting at line 64 (currently). | |
// console.log() can be used to find the name of events being triggered by Drupal states. | |
states.Dependent.prototype = { | |
initializeDependee: function initializeDependee(selector, dependeeStates) { | |
var state = void 0; | |
var self = this; | |
function stateEventHandler(e) { | |
// console.log(e.data.state) will output the state whenever it is triggered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vid = document.getElementsByClassName("video-stream html5-main-video")[0]; | |
vid.playbackRate = 3.5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Before every scenario log in to HTTP basic auth. | |
* | |
* @BeforeScenario | |
*/ | |
public function beforeScenario() { | |
$username = 'username'; | |
$password = 'password'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_views_default_views_alter(). | |
* | |
* Disables views provided by contrib modules that are unnecessary. | |
*/ | |
function module_name_views_default_views_alter(&$views) { | |
// Disable the default 'tweets' view provided by the Twitter module. | |
if (isset($views['tweets'])) { |