This file contains hidden or 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
| $.fn.equalheight = function( remove ){ | |
| if( remove == false ){ | |
| $.each( this, function(){ | |
| this.css('height','auto'); | |
| }); | |
| return; | |
| } | |
| // Reset heights from the last viewport resize so that values do not get wacky-large. |
This file contains hidden or 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
| function checkjQuery() { | |
| if (window.jQuery) { | |
| $(function() { | |
| //your code here | |
| }); | |
| } else { | |
| window.setTimeout(checkjQuery, 100); | |
| } | |
| } | |
| checkjQuery(); |
This file contains hidden or 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
| javascript:window.location="http://thegamesdb.net/game/"+Math.floor(Math.random()*18000); |
This file contains hidden or 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
Show hidden characters
| [ | |
| { "keys": ["ctrl+tab"], "command": "next_view" }, | |
| { "keys": ["ctrl+shift+tab"], "command": "prev_view" } | |
| ] |
This file contains hidden or 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
| // Partial credit for this goes to the broken script I found at http://www.sitepoint.com/jquery-convert-rgb-hex-color/ | |
| function rgb2hex(rgb){ | |
| rgb = rgb.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*(\d*)\.?(\d*)\s*)?\)$/); | |
| return "#" + | |
| ("0" + parseInt(rgb[1],10).toString(16)).slice(-2) + | |
| ("0" + parseInt(rgb[2],10).toString(16)).slice(-2) + | |
| ("0" + parseInt(rgb[3],10).toString(16)).slice(-2); | |
| } |
This file contains hidden or 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
| # https://www.drupal.org/node/1032068#comment-5633442 | |
| <?php | |
| # print render(module_invoke('MODULE_NAME', 'block_view', 'BLOCK_DELTA')); | |
| ?> | |
| <?php | |
| print render(module_invoke('search', 'block_view', '1')); | |
| # import the search block anywhere | |
| ?> |
This file contains hidden or 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
| <div class="focus"> | |
| <?php | |
| echo views_embed_view('focus_area', $display_id = 'block'); | |
| # from https://www.drupal.org/node/48816#comment-4582424 | |
| ?> | |
| </div> |
This file contains hidden or 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
| alert(([][[]]+[])[!+[]+!![]+!![]+!![]]+([] | |
| [[]]+[])[+[]]+(!![]+[])[+[]]+([][[]]+[]) | |
| [+[]]+([]+{})[!+[]+!![]]+([][[]]+[])[! | |
| +[]+!![]+!![]+!![]+!![]]+(![]+[])[!+[]+!! | |
| []]+([][[]]+[])[!+[]+!![]+!![]]+([][[]]+[]) | |
| [!+[]+!![]+!![]]+(!![]+[])[+[]]) |
This file contains hidden or 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
| //http://stackoverflow.com/a/901144 | |
| function getParameterByName(name) { | |
| name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
| var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), | |
| results = regex.exec(location.search); | |
| return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
| } | |
| // Usage: |
This file contains hidden or 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
| <div class="btn-group pull-right" role="group"> | |
| <button class="btn btn-default inline" data-target="#content .panel:not('.in')" data-toggle="collapse" id="info-page-uncollapse-all">Expand All <span class="glyphicon glyphicon-chevron-down"></span></button> | |
| <button class="btn btn-default" data-target="#content .panel.in" data-toggle="collapse" id="info-page-collapse-all">Collapse All <span class="glyphicon glyphicon-chevron-up"></span></button> | |
| </div> |
OlderNewer