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
//Click on the closest parent element of a video to have it popped out and the main window closed | |
(function (css, int, d, s) { | |
d.body.appendChild(s = document.createElement('style')); | |
s.innerHTML = ':hover{border-left:3px solid papayawhip;}'; | |
d.body.onclick = function (e) { | |
var popd, | |
v = e.srcElement.querySelectorAll('embed,object,iframe')[0] || d.querySelectorAll('embed,object,iframe')[0], | |
w = int(css(v).width) || 400, | |
h = int(css(v).height) || 300, | |
pop = window.open(d.location.href,''+Math.random(),'height='+h+',width='+w), |
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 | |
/* | |
Struttura del sito: | |
• home <- home del sito italiano | |
• chi siamo | |
• contatti | |
• english home <- home del sito inglese (id: 15) | |
• • about us <- sottopagina | |
• • contacts <- sottopagina |
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
button{ | |
display: inline-block; | |
cursor: pointer; | |
color: inherit; | |
padding: inherit; | |
border: none; | |
background: inherit; | |
box-sizing: content-box; | |
font: inherit; | |
-webkit-appearance: none; |
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
/* to be compressed via http://compressor.ebiene.de/*/ | |
/*admin panel in page*/ | |
#AdminTip, | |
.notification, | |
.preview, | |
.author, | |
.timestamp, | |
.uiHeader *, |
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
//make sure downloads open in another page with target="_blank" | |
//"beforeunload" is fired any time a link is clicked. | |
//If the link points to a file to download, the user won't be actually leaving the page, but beforeunload will still have fired. | |
(function () { | |
var unload = {}; | |
unload.init = function () { | |
//cache html element | |
unload.$html = $(document.documentElement); |
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: url(res/bg/1280.jpg) fixed center black; | |
} | |
@media only screen and (min-width:1281px), | |
only screen and (min-height:801px) { | |
html{ background-image: url(res/bg/1366.jpg); } | |
} | |
@media only screen and (min-width:1367px), | |
only screen and (min-height:855px) { | |
html{ background-image: url(res/bg/1440.jpg); } |
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
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/, 'js'); |
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
//This example requires YepNope or Modernizr.load (which are the same) and jQuery | |
var customScroll = (function () { | |
var customScroll = {}; | |
customScroll.selector = ".entry-gallery, .entry-main"; | |
customScroll.init = function () { | |
try { | |
(yepnope || Modernizr.load)({ |
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
/** | |
* CSS transition after animation | |
*/ | |
div { | |
transition: transform 1s; | |
} | |
div:hover { | |
transform: rotate(45deg); | |
} | |
div:active { |
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
Visit chrome://settings/searchEngines | |
Enter a name, like "YouTube direct" | |
Pick a keyword, like "y" | |
Paste this URL: http://www.google.com/search?q=%s+site%3Ayoutube.com&btnI=Im+Feeling+Lucky | |
Click [Done] | |
In the address bar, type your keyword followed by the video name, like: "y get lucky" (try it!) |
OlderNewer