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
$(document).ready(function () { | |
if (document.URL.indexOf('http://') === -1 && document.URL.indexOf('https://') === -1) { | |
document.addEventListener("deviceready", OnLoad, true); | |
} | |
else { | |
OnLoad(); | |
} | |
}); |
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
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 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 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 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 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 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
ModFormCommon.PhotoSuccess = function (imageURI) { | |
var fsSuccess = function (fileEntry) { | |
//alert("got image file entry: " + fileEntry.fullPath); | |
var gotFileSystem = function (fileSystem) { | |
fileSystem.root.getDirectory( | |
ModPhoto.FileStore, | |
{ create: 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
_loadTile: function (tile, tilePoint) { | |
//try{ | |
var that = this; | |
tile._layer = this; | |
tile.onload = this._tileOnLoad; | |
tile.onerror = this._tileOnError; | |
tilePoint.z = this._getZoomForUrl(); |
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
//This doesn't work. The test can't find the service | |
angular.module('RhinoLib').service('sqLite', function( $q ) { | |
this.initPromise = null; | |
this.oDb = null; | |
} | |
//This works perfectly. I just renoved the $q parameter for the service | |
angular.module('RhinoLib').service('sqLite', function() { |
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 http = require('http'); | |
var fs = require('fs'); | |
http.createServer(function(request,response){ | |
response.writeHead(200); | |
var destinationFile = fs.createWriteStream(fileName); | |
request.pipe(destinationFile); | |
var fileSize = request.headers['content-length']; |
OlderNewer