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
/** | |
* Cargo's jQuery event trigger list | |
*/ | |
/* | |
* Fires in two places | |
* - After a project is done loading | |
* - document.ready | |
* returns the pid and the slideheight | |
*/ |
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
/** | |
* Cargo's helper methods | |
*/ | |
/* | |
* Config helpers | |
*/ | |
// Returns the design | |
Cargo.Config.GetDesign(); |
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
/** | |
* Cargo's project methods | |
* Manipulating projects | |
*/ | |
/* | |
* Close a project | |
* This will also remove any nav/thumb highlights | |
*/ |
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
function supportsSvg() { | |
return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.0") | |
} | |
function supportsVml() { | |
if (typeof supportsVml.supported == "undefined") { | |
var a = document.body.appendChild(document.createElement('div')); | |
a.innerHTML = '<v:shape id="vml_flag1" adj="1" />'; | |
var b = a.firstChild; | |
b.style.behavior = "url(#default#VML)"; |
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
javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}funct |
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 | |
/** | |
* Instagram feed getter | |
* This will query the Instagram API and return a list of images | |
*/ | |
class InstagramFeed { | |
public $result; | |
public static $display_size = 'thumbnail'; // you can choose between "low_resolution", "thumbnail" and "standard_resolution" | |
public static $user_id; | |
public $feed; |
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
javascript:(function()%7Bdocument.querySelector('header').style.visibility%3D%22hidden%22%3B%20document.querySelector('div%5Bdata-testid%3D%22sidebarColumn%22%5D').style.visibility%3D%22hidden%22%7D)() |