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
@media (min--moz-device-pixel-ratio: 1.5), | |
(-o-min-device-pixel-ratio: 3/2), | |
(-webkit-min-device-pixel-ratio: 1.5), | |
(min-device-pixel-ratio: 1.5), | |
(min-resolution: 1.5dppx) { | |
/* your retina rules here */ | |
} |
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
// Post repeat directive for logging the rendering time | |
angular.module('siApp.services').directive('postRepeatDirective', | |
['$timeout', '$log', 'TimeTracker', | |
function($timeout, $log, TimeTracker) { | |
return function(scope, element, attrs) { | |
if (scope.$last){ | |
$timeout(function(){ | |
var timeFinishedLoadingList = TimeTracker.reviewListLoaded(); | |
var ref = new Date(timeFinishedLoadingList); | |
var end = new Date(); |
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
/** | |
* source : http://stackoverflow.com/questions/3485365/how-can-i-force-webkit-to-redraw-repaint-to-propagate-style-changes | |
*/ | |
sel.style.display='none'; | |
sel.offsetHeight; // no need to store this anywhere, the reference is enough | |
sel.style.display='block'; | |
NewerOlder