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
<?php | |
//Class ShoppingCard { | |
// | |
//} | |
// | |
//$product1 = new ShoppingCard(); | |
//$product2 = new ShoppingCard(); | |
//$product3 = new ShoppingCard(); | |
// |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Google Maps JavaScript API v3 Example: Geocoding Simple</title> | |
<style> | |
html, body, #map_canvas { | |
height: 100%; |
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
<?php | |
function my_plugin_add_scripts(){ | |
wp_enqueue_style('my-plugin-style', plugins_url().'/my-plugin/css/style.css'); | |
wp_enqueue_script('my-plugin-script', plugins_url().'/my-plugin/js/main.js'); | |
} | |
add_action('wp_enqueue_scripts', 'my_plugin_add_scripts'); |
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 validateUrl(url) { | |
var re = /^(ftp|http|https):\/\/[^ "]+$/.test(url); | |
return re; | |
} | |
function validate(data) { | |
var url = data.val(); | |
var $result = data.next(); | |
$result.text(""); |
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
for ($i=1; $i+1< count($menu_param); $i+=2) { | |
$output .= '<li class="menu-item"><a title="'.$menu_param[$i].'" href="'.$menu_param[$i+1].'" target="_blank">'.$menu_param[$i].'</a></li>'; | |
} |
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
.ko_menu_slider .owl-wrapper .inner_slide { | |
-webkit-column-count: 2; /* Chrome, Safari, Opera */ | |
-moz-column-count: 2; /* Firefox */ | |
column-count: 2; | |
} | |
.ko_menu_slider .owl-wrapper .inner_slide div{ | |
-webkit-column-break-inside: avoid; | |
page-break-inside: avoid; | |
break-inside: avoid; |
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
#logoSocial a:active, | |
#logoSocial a:focus { | |
outline: 0; | |
border: none; | |
-moz-outline-style: none; | |
} |
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="container"> | |
<img class='photo' src="http://farm9.staticflickr.com/8320/8035372009_7075c719d9.jpg" alt="" /> | |
<img class='photo' src="http://farm9.staticflickr.com/8517/8562729616_35b1384aa1.jpg" alt="" /> | |
<img class='photo' src="http://farm9.staticflickr.com/8465/8113424031_72048dd887.jpg" alt="" /> | |
<img class='photo' src="http://farm9.staticflickr.com/8241/8562523343_9bb49b7b7b.jpg" alt="" /> | |
</div> | |
body { | |
background: #000; | |
} |
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
$(window).scroll(function() { | |
if($(window).scrollTop() + $(window).height() == $(document).height()) { | |
alert("bottom!"); | |
} | |
}); |
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
input[type=time]::-webkit-datetime-edit-ampm-field { | |
display: none; | |
} |
OlderNewer