z-index | Element |
---|---|
500 | Flash Messages |
401 | Modal |
400 | Modal Overlay |
300 | Menu |
200 | Header |
100 | Content Overlay |
0-99 | Content |
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 scrollCap = function ($element) { | |
$element.on('touchstart.scroll-cap', function(event){ | |
var $element = $(this); | |
var scrollTop = $element.scrollTop(); | |
var contentHeight = $element.get(0).scrollHeight; | |
var minScrollTop = 1; | |
var maxScrollTop = contentHeight - $element.height() - 1; | |
if(scrollTop < minScrollTop){ | |
$element.scrollTop(minScrollTop); |
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 styleSupported = (function () { | |
var supported = []; | |
var check = function (property) { | |
var body = document.body || document.documentElement; | |
var style = body.style; | |
// check for standard | |
if (typeof style[property] == 'string') { return 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
$('.dummy-content[data-fill]').each(function (index, element) { | |
var $element = $(element); | |
var fill = $element.data('fill'); | |
for (var i = 0; i < fill; i++) { | |
$element.append('<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus congue porta felis non fringilla. Etiam nisl turpis, volutpat ut ipsum id, semper ornare velit. Aliquam non lectus rhoncus, laoreet nisl eget, elementum nisi. Nullam diam ligula, faucibus quis orci rhoncus, blandit facilisis odio. Curabitur iaculis convallis felis ut iaculis. Etiam ut orci ullamcorper ligula elementum elementum vel at odio. Pellentesque feugiat lorem leo, non interdum nisl tristique nec. Suspendisse iaculis urna non convallis.</p>'); | |
} | |
if ($element.is('[data-fin]')) { | |
$element.append('<p><a href="http://cdn.ebaumsworld.com/mediaFiles/picture/664379/80470643.gif">Fin</a></p>'); | |
} | |
}); |
- The Morning Breaks, Mormon Tabernacle Choir
- High on the Mountain Top, Mormon Tabernacle Choir
- Welcome to Conference, President Thomas S. Monson
- Beautiful Zion, Built Above, Mormon Tabernacle Choir
- The Reason for Our Hope, President Boyd K. Packer
- Which Way Do You Face?, Elder Lynn G. Robbins
- [The Sacrament—a Rene
$ xcrun simctl list
== Device Types ==
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
iPad 2 (com.apple.CoreSimulator.SimDeviceType.iPad-2)
iPad Retina (com.apple.CoreSimulator.SimDeviceType.iPad-Retina)
- scss
- settings
- colors.scss
- variables.scss
- tools
- mixins.scss
- functions.scss
- generics
- normalize.scss
- settings
- box-sizing.scss
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
Show hidden characters
{ | |
"binary_file_patterns": [ | |
"bower_components/*", | |
"node_modules/*", | |
"build/*", | |
"dist/*" | |
], | |
"color_scheme": "Packages/User/Github.tmTheme", | |
"default_font_size": 12.0, | |
"detect_indentation": true, |
Every time I use svg images, I want to provide png fallbacks. I was looking into using the file-loader
, but I need to do a bit more:
- Move svg and png fallback files into the destination folder.
- Bundle a module for the client to check for svg support.
- Bundle a module for the client that returns the correct url for the image based on svg support.
I hoped there would be an svg-loader
but didn't find one in the list. Maybe it's a good idea?