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
//original javascript | |
var doc = document.getElementById('iframeId').contentWindow.document; | |
//jquery | |
var doc = $('#iframe').contents(); |
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 | |
class ShortUrl { | |
private static function getJson($url) { | |
$ch = curl_init($url); | |
curl_setopt_array( $ch, [ | |
CURLOPT_AUTOREFERER => TRUE, | |
CURLOPT_HEADER => 0, | |
CURLOPT_RETURNTRANSFER => 1, | |
CURLOPT_FOLLOWLOCATION => TRUE, |
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
/* clearfix */ | |
/*=============================*/ | |
.clearfix:before, .clearfix:after { content: ""; display: table; } | |
.clearfix:after { clear: both; } | |
/* IE 6/7 */ | |
.clearfix { zoom: 1; } | |
/* transparent */ | |
/* via http://perishablepress.com/cross-browser-transparency-via-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
blockquote { | |
background: #f9f9f9;< | |
border-left: 10px solid #ccc; | |
margin: 1.5em 10px; | |
padding: .5em 10px; | |
quotes: "\201C""\201D""\2018""\2019"; | |
} | |
blockquote:before { | |
color: #ccc; | |
content: open-quote; |
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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen and (min-width : 321px) { | |
/* Styles */ | |
} | |
/* Smartphones (portrait) ----------- */ |
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
img.polaroid { | |
background:#000; /*Change this to a background image or remove*/ | |
border:solid #fff; | |
border-width:6px 6px 20px 6px; | |
box-shadow:1px 1px 5px #333; /* Standard blur at 5px. Increase for more depth * | |
-webkit-box-shadow:1px 1px 5px #333; | |
-moz-box-shadow:1px 1px 5px #333; | |
height:200px; /*Set to height of your image or desired div*/ | |
width:200px; /*Set to width of your image or desired div*/ | |
} |
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
.has-pullquote:before { | |
/* Reset metrics. */ | |
padding: 0; | |
border: none; | |
/* Content */ | |
content: attr(data-pullquote); | |
/* Pull out to the right, modular scale based margins. */ | |
float: rightright; | |
width: 320px; | |
margin: 12px -140px 24px 36px; |
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('images/bg.jpg') no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} |
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
#colorbox { | |
background: #629721; | |
background-image: -webkit-gradient(linear, left top, left bottombottom, from(#83b842), to(#629721)); | |
background-image: -webkit-linear-gradient(top, #83b842, #629721); | |
background-image: -moz-linear-gradient(top, #83b842, #629721); | |
background-image: -ms-linear-gradient(top, #83b842, #629721); | |
background-image: -o-linear-gradient(top, #83b842, #629721); | |
background-image: linear-gradient(top, #83b842, #629721); | |
} |
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
.hide-overflow-word { | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} |
OlderNewer