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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Justified Menu / Block list · CodePen</title> | |
<link rel="stylesheet" href="http://codepen.io/stylesheets/css/reset.css"> |
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
var savedRuler= app.preferences.rulerUnits; | |
app.preferences.rulerUnits = Units.PIXELS; | |
var w = app.activeDocument.width; | |
var h = app.activeDocument.height; | |
if(w>h) app.activeDocument.resizeCanvas (w, w, AnchorPosition.MIDDLECENTER); | |
if(w<h) app.activeDocument.resizeCanvas (h, h, AnchorPosition.MIDDLECENTER); | |
app.preferences.rulerUnits = savedRuler; |
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
$(window).error(function (error) { | |
if (error && error.originalEvent) { | |
error = error.originalEvent; | |
var message, url, line; | |
if (error && error.message) { | |
message = error.message; | |
url = getfilename(error.filename); | |
line = error.lineno; | |
} else { | |
message = "(message empty)"; |
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 dsq_fix() { | |
echo '<style type="text/css">div.dsq-main {height:100%;min-height:100%;}</style>'; | |
} | |
add_action('admin_head', 'dsq_fix'); |
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 windowVisibility() { | |
var v = 'visible', hidden = h = 'hidden', map = {focus:v, focusin:v, pageshow:v, blur:h, focusout:h, pagehide:h}; | |
if (hidden in D) D.addEventListener("visibilitychange", onchange); | |
else if ((hidden = "mozHidden") in D) D.addEventListener("mozvisibilitychange", onchange); | |
else if ((hidden = "webkitHidden") in D) D.addEventListener("webkitvisibilitychange", onchange); | |
else if ((hidden = "msHidden") in D) D.addEventListener("msvisibilitychange", onchange); | |
else if ('onfocusin' in D) D.onfocusin = D.onfocusout = onchange; | |
W.onpageshow = W.onpagehide = W.onfocus = W.onblur = onchange; | |
function onchange(e) { | |
e = e || W.event; |
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
"undefined"==typeof jwplayer&&(jwplayer=function(e){if(jwplayer.api)return jwplayer.api.selectPlayer(e)},jwplayer.version="6.8.4616",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(e){function a(h){return function(){return b(h)}}function l(h,b,a,k,j){return function(){var d,f;if(j)a(h);else{try{if(d=h.responseXML)if(f=d.firstChild,d.lastChild&&"parsererror"===d.lastChild.nodeName){k&&k("Invalid XML"); | |
return}}catch(g){}if(d&&f)return a(h);(d=c.parseXML(h.responseText))&&d.firstChild?(h=c.extend({},h,{responseXML:d}),a(h)):k&&k(h.responseText?"Invalid XML":b)}}}var g=document,f=window,d=navigator,c=e.utils=function(){};c.exists=function(h){switch(typeof h){case "string":return 0<h.length;case "object":return null!==h;case "undefined":return!1}return!0};c.styleDimension=function(h){return h+(0<h.toString().indexOf("%")?"":"px")};c.getAbsolutePath=function(h,b){c.exists(b)||(b=g.location.href);if(c.exists(h)){va |
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
<?xml version="1.0" ?><skin author="JW Player" name="Five" target="6.7" version="3.0"> | |
<components> | |
<component name="controlbar"> | |
<settings> | |
<setting name="margin" value="0"/> | |
<setting name="maxwidth" value="9999"/> | |
<setting name="fontsize" value="11"/> | |
<setting name="fontweight" value="normal"/> |
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 r(f) { | |
/in/.test(document.readyState) ? setTimeout('r('+f+')',9) : f() | |
} |
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
html { | |
background: #fff; | |
margin:0; | |
padding:0; | |
} | |
body { | |
color: #233452; | |
height: 100%; | |
font-family: Verdana, Helvetica, sans-serif; | |
margin: 20px 0; |
OlderNewer