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
/* ========================================================================== | |
Section comment block | |
========================================================================== */ | |
/* Sub-section comment block | |
========================================================================== */ | |
/* | |
* Group comment block. | |
* Ideal for multi-line explanations and documentation. |
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
{ | |
"cmd": | |
[ | |
"lessc", | |
//"--line-numbers=all", | |
"--source-map", | |
//"--relative-urls", | |
"--compress", | |
//"--clean-css", | |
"--verbose", |
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
jQuery.fn.toggleAttr = function(a, b) { | |
var c = (b === undefined); | |
return this.each(function() { | |
if((c && !jQuery(this).is("["+a+"]")) || (!c && b)) jQuery(this).attr(a,a); | |
else jQuery(this).removeAttr(a); | |
}); | |
}; |
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
var ifr = document.getElementById( yourIframeId ); | |
var ifrDoc = ifr.contentDocument || ifr.contentWindow.document; | |
var theForm = ifrDoc.getElementById( yourFormId ); |
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
jQuery.fn.extend({ | |
toggle: function( fn ) { | |
// Save reference to arguments for access in closure | |
var args = arguments, | |
guid = fn.guid || jQuery.guid++, | |
i = 0, | |
toggler = function( event ) { | |
// Figure out which function to execute | |
var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i; | |
jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 ); |
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
// Note: | |
// we have to rap the response like this: | |
// response.write(callback + "(" +JSON.stringify(searchresults) +")"); | |
jQuery.ajax({ | |
url: 'https://', | |
dataType: 'jsonp', | |
crossDomain: true, | |
success: function(data) { | |
console.dir(data) |
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 createSavedSearch() | |
{ | |
var item = request.getParameter('itemid'); // Get parameter | |
// Required paremeter for jsonp requests | |
// var callback = request.getParameter('callback'); | |
// Define search filters | |
var filters = []; | |
filters[0] = new nlobjSearchFilter( 'enter search filter id', null, 'anyOf', item ); |
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:if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,s){s=d.createElement('script');s.src='https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js';(d.head||d.documentElement).appendChild(s)})(document); |
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
// Include javascript file in chrome console | |
var script= document.createElement('script'); | |
script.type= 'text/javascript'; | |
script.src= 'script.js'; | |
document.head.appendChild(script); |
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
var dot = function (prop, obj) { | |
return obj[prop]; | |
}.autoCurry(); |