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
if (typeof navigator.notification === 'undefined') { | |
navigator.notification = { | |
confirm: function (message, confirmCallback, title, buttonLabels) { | |
setTimeout(function (){ | |
if (window.confirm(message)) { | |
confirmCallback(1); | |
} | |
else { | |
confirmCallback(2); |
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
<!--detail popup--> | |
<div class="popupContainer" ng-show="detailVisible"> | |
<div class="pop-dialog full detailPopup" ng-show="detailVisible"> | |
<div class="body"> | |
<div class="close-icon" ng-click="detailVisible = false"><i class="icon-remove-sign"></i></div> | |
<h3>{{activeInspection.ModuleName | lineToSpace}}</h3> | |
<h5>{{activeInspection.Class | lineToSpace}}</h5> | |
<div class="settings"> | |
<div class="items"> | |
<table> |
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
#!/bin/bash | |
# | |
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance | |
# with the License. You may obtain a copy of the License at |
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
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
meta: { | |
banner: '/*! <%= pkg.name || pkg.name %> - v<%= pkg.version %> - ' + | |
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | |
'<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' + |
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
NOTE: I added these too | |
in config.xml | |
<plugin name="Camera" value="org.apache.cordova.CameraLauncher" /> | |
in AndroidManifest | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
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
$(document).ready(function () { | |
if (document.URL.indexOf('http://') === -1 && document.URL.indexOf('https://') === -1) { | |
document.addEventListener("deviceready", OnLoad, true); | |
} | |
else { | |
OnLoad(); | |
} | |
}); |
NewerOlder