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
<!-- IE 10 Metro tile icon --> | |
<!-- Set a color of a tile --> | |
<meta name="msapplication-TileColor" content="#000"> | |
<!-- Place an icon inside of a tile --> | |
<meta name="msapplication-TileImage" content="/images/favicons/apple-touch-icon-144.png"> | |
<!-- iOS splash images --> | |
<!-- iPhone portrait --> | |
<link rel="apple-touch-startup-image" href="/images/splash/splash-320.png" /> | |
<!-- iPad portrait --> | |
<link rel="apple-touch-startup-image" sizes="768x1004" href="/images/splash/splash-768.png" /> |
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
<!doctype html> | |
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> | |
<!--[if IE 9 ]><html class="ie ie9" lang="en"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]--> | |
<title>MediaPlayer</title> | |
<script src="js/libs/jquery-1.9.1.min.js"></script> |
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 parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
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
/* =Placeholders */ | |
/* Reset of Placeholder text behaviour */ | |
:focus::-webkit-input-placeholder { color: transparent; } | |
:focus::-moz-placeholder { color: transparent; } /* Firefox 19+ */ | |
:focus:-moz-placeholder { color: transparent; } /* Firefox 18 */ | |
/* Color of Placeholder text */ | |
::placeholder { color: #ccc; } | |
::-webkit-input-placeholder { color: #ccc; } | |
::-moz-placeholder { color: #ccc; opacity: 1; } /* Firefox 19+ */ |
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
/* Clear behaviour of IE10 form fields */ | |
::-ms-clear, ::-ms-reveal { | |
display: 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
var beforeActionMessage = 'Are you sure you want to perform this action?', | |
confirmWindow = window.confirm(beforeActionMessage); | |
if (confirmWindow) { | |
// Do some action here | |
} else { | |
return false; | |
} |
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
; (function ($) { | |
'use strict' | |
var handler = function() { | |
// | |
} | |
$('.btn-class').on('click', handler); |
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
(function mySelfExecutedFunction() { | |
// | |
})(); |
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
// Reset a Video players - iframes from YouTube or Vimeo, etc. | |
var resetIframeVideoPlayer = function () { | |
var $videoPlayer = $(this), videoIframeSrc; | |
// Store the src of iframe with video | |
videoIframeSrc = $player.attr('src'); | |
// Clear src attribute from an iframe | |
$videoPlayer.attr('src', ''); | |
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 videoWidth = containerOfVideo.width(), | |
videoHeight = Math.round(videoWidth * 0.5625); |
OlderNewer