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
/** | |
* Convert a string in decimal or clock format in hh:mm format using moment.js | |
* Examples: | |
* 1.5 > 1:30 | |
* 1,4 > 1:24 | |
* 2:70 > 3:10 | |
* | |
* @param string time | |
* @return string | |
*/ |
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
/* | |
Custom wrappers for javascript's alert/confirm/prompt and their respective cordova counterparts: | |
https://github.com/apache/cordova-plugin-dialogs | |
Useful if you want to keep the same codebase on a web and a packaged app. Just keep in mind that javascript dialogs are synchronous, while cordova's are not. | |
Usage (for the prompt): | |
showPrompt("What's your name?", null, function(value){ | |
if (value) { | |
console.log("Your name: "+ value); |
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
/* | |
Align Bootstrap's .img-responsive images in a left, center or right aligned text container | |
Replaces original .img-responsive class | |
*/ | |
// Responsive images (ensure images don't scale beyond their parents) | |
.img-responsive { | |
@include img-responsive(); | |
.text-left & { |