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 mvGAAC = { | |
init: function(){ | |
$.getScript('//cdnjs.cloudflare.com/ajax/libs/geocomplete/1.6.5/jquery.geocomplete.min.js', mvGAAC.loaded); | |
}, | |
loaded: function(){ | |
$('.js-geocomplete-input') | |
.geocomplete() | |
.bind('geocode:result', mvGAAC.result); | |
}, | |
result: function(event, result){ |
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
<mvt:item name="toolkit" param="headeroutput|Content-Type|application/json" /> | |
<mvt:item name="powrsrch" param="picklist|10" /> | |
<mvt:if expr="l.settings:picklist"> | |
[ | |
<mvt:foreach iterator="pick" array="picklist"> | |
<mvt:item name="toolkit" param="json_encode|l.all_settings:pick:term|l.all_settings:pick:term" /> | |
<mvt:if expr="pos1 EQ 1"> | |
{"term": ""} | |
<mvt:else> | |
,{"term": ""} |
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
<!-- FROM: http://us5.campaign-archive1.com/?u=ea228d7061e8bbfa8639666ad&id=c53c1e7832&e=ff0570c0b6 --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<input value="Web Tools Weekly" id="textField"> |
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
<? | |
// process_file("sample.txt"); | |
process_file("access_log.txt"); | |
function process_file($file = 'sample.txt') | |
{ | |
// Declare Variables | |
$total_bytes = 0; | |
$graphic_bytes = 0; | |
$line_count = 0; |
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
<ifModule mod_gzip.c> | |
mod_gzip_on Yes | |
mod_gzip_dechunk Yes | |
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ | |
mod_gzip_item_include handler ^cgi-script$ | |
mod_gzip_item_include mime ^text/.* | |
mod_gzip_item_include mime ^application/x-javascript.* | |
mod_gzip_item_exclude mime ^image/.* | |
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* | |
</ifModule> |
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
/* http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ */ | |
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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
/* http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ */ | |
@mixin vertical-align { | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} | |
.element p { |
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
<!-- https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode --> | |
<video controls id="myvideo"> | |
<source src="somevideo.webm"></source> | |
<source src="somevideo.mp4"></source> | |
</video> | |
<script> | |
// We can put that video into fullscreen mode with script like this: | |
var elem = document.getElementById("myvideo"); | |
if (elem.requestFullscreen) { | |
elem.requestFullscreen(); |
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
<!-- FROM: http://redotheweb.com/2013/05/15/client-side-full-text-search-in-css.html --> | |
<input type="text" placeholder="search" id="search"> | |
<style id="search_style"></style> | |
<script type="text/javascript"> | |
var searchStyle = document.getElementById('search_style'); | |
document.getElementById('search').addEventListener('input', function() { | |
if (!this.value) { | |
searchStyle.innerHTML = ""; | |
return; | |
} |
OlderNewer