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
[data-slides] { | |
background-image: url(../../uploads/banner1.jpg); /* Default image. */ | |
background-repeat: no-repeat; | |
background-position: center center; | |
background-size: cover; | |
-webkit-transition: all 0.7s ease; | |
-moz-transition: all 0.7s ease; | |
-ms-transition: all 0.7s ease; | |
-o-transition: all 0.7s ease; | |
transition: all 0.7s ease; |
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{ | |
height: 100%; | |
background-image: url('img/content/slide1.jpg'); | |
background-repeat: no-repeat; | |
background-position: center center; | |
background-size: cover; | |
-webkit-transition: all 1.2s ease; | |
-moz-transition: all 1.2s ease; | |
-ms-transition: all 1.2s ease; | |
-o-transition: all 1.2s ease; |
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
.weatherfeed{ | |
color: rgba( 255, 255, 255, 1); | |
text-align: right; | |
font-size: 16px; | |
max-width:350px; | |
line-height: 1.43em; | |
background-position: 25% -50%; | |
background-repeat: no-repeat; | |
} |
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 isTouchDevice(){ | |
return true == ('ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch); | |
} | |
function current() { | |
var state='click'; | |
if(isTouchDevice()===true) { | |
state='touchstart'; | |
} | |
return {h : Math.max(document.documentElement.clientHeight, window.innerHeight || 0), w: Math.max(document.documentElement.clientWidth, window.innerWidth || 0),scroll:(window.pageYOffset || document.documentElement.scrollTop) - (document.documentElement.clientTop || 0),state:state}; | |
} |
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
jQuery(window).on('load', function () { | |
if(jQuery("#map").length){ | |
loadMap(); | |
} | |
}); | |
function loadMap() { | |
var script = document.createElement('script'); | |
script.defer = 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
html{ | |
overflow-x: hidden | |
} | |
body.modal-open{ | |
overflow: visible !important | |
padding-right: 0 !important | |
} | |
.modal.full-size { |
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
"use strict"; | |
/* A version number is useful when updating the worker logic, | |
allowing you to remove outdated cache entries during the update. | |
*/ | |
var version = 'v1::'; | |
/* These resources will be downloaded and cached by the service worker | |
during the installation process. If any resource fails to be downloaded, | |
then the service worker won't be installed either. |
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 isTouchDevice(){ | |
return true == ("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch); | |
} | |
if(!isTouchDevice() && window.outerWidth > 1199){ | |
} |
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
.slides-nav { | |
z-index: 99; | |
position: fixed; | |
right: -5%; | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: flex; | |
-webkit-box-align: center; | |
-ms-flex-align: center; | |
align-items: center; |
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
Get exchange rate as JSONP via YQL. | |
YQL Console: http://developer.yahoo.com/yql/console | |
Query (USD to SEK): select rate,name from csv where url='http://download.finance.yahoo.com/d/quotes?s=USDSEK%3DX&f=l1n' and columns='rate,name' | |
Example code: | |
<script type="text/javascript"> |
OlderNewer