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 win = Ti.UI.createWindow({ | |
backgroundColor:'white', | |
layout: "vertical" | |
}); | |
var btnContainer = Ti.UI.createScrollView(); | |
var activityPopoverBtn = Ti.UI.createButton({ |
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 dialogs = require('alloy/dialogs'); | |
function editPermissions(e) { | |
if (OS_IOS) { | |
Ti.Platform.openURL(Ti.App.iOS.applicationOpenSettingsURL); | |
} | |
if (OS_ANDROID) { | |
var intent = Ti.Android.createIntent({ |
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 dialogs = require('alloy/dialogs'); | |
function editPermissions(e) { | |
if (OS_IOS) { | |
Ti.Platform.openURL(Ti.App.iOS.applicationOpenSettingsURL); | |
} | |
if (OS_ANDROID) { | |
var intent = Ti.Android.createIntent({ |
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
import React, { Component } from 'react' | |
import { StyleSheet, View, SafeAreaView } from 'react-native' | |
import Carousel from 'react-native-snap-carousel'; | |
import { Container, Header, Content, Card, CardItem, Thumbnail, Text, Button, Icon, Left, Body, Right, Image } from 'native-base'; | |
class VegRecipes extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
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
/** | |
* Location Wrapper | |
* | |
* @class location | |
* @uses core | |
*/ | |
var App = require('core'), | |
lastKnownLocation, | |
showError = false, |
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
function afterCheckOut(didUserCheckinFromMobile) { | |
var badge_flash_status = false; | |
console.log("-----I am here in after checkout the vist ID is still ------ " + Alloy.Globals.visitId); | |
//$.btn_checkin.setTitle('Check In'); | |
if (OS_IOS) { | |
api.get({ | |
url: 'check_badge_status', | |
data: { | |
token: rep_token, | |
visit_id: Alloy.Globals.visitId |
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
import java.security.MessageDigest; | |
public class Main | |
{ | |
public static void main(String[] args) { | |
System.out.println(hexStringToByteArray(sha256("badge1"))); | |
System.out.println("-------"); | |
System.out.println(byteArrayToHexString(hexStringToByteArray(sha256("badge1")))); | |
System.out.println(byteArrayToHexString(hexStringToByteArray(sha256("badge1")))); |
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
<Alloy> | |
<View class="rx_container" id="wrapper"> | |
<Require type="widget" src="com.mcongrove.navigationBar" id="NavigationBar" /> | |
<View layout="vertical"> | |
<ScrollView layout="vertical" height="Ti.UI.SIZE" > | |
<View class="rx_box vw_form" layout="vertical" id="main_box" top="0" height="90%" > | |
<Label id="lbl_facility_name" class="heading" text="Facility Name" block="no"/> | |
<Label id="lbl_facility_address" textAlign="center" block="no"/> |
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
function openCheckInScreen() { | |
if (geolocation.hasPermissions()) { | |
location.getDeviceLocation({ | |
callback: getDeviceCallback | |
}); | |
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
/** | |
* Location Wrapper | |
* | |
* @class location | |
* @uses core | |
*/ | |
var App = require('core'), | |
lastKnownLocation, | |
showError = false, |
NewerOlder