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
| function CreateGuid() { | |
| function _p8(s) { | |
| var p = (Math.random().toString(16) + "000000000").substr(2, 8); | |
| return s ? "-" + p.substr(0, 4) + "-" + p.substr(4, 4) : p; | |
| } | |
| return _p8() + _p8(true) + _p8(true) + _p8(); | |
| } | |
| // to create a GUID, just call it like this: | |
| // var id = CreateGuid(); |
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
| var inputID = ""; | |
| $('#howDidIFeelCheckboxes').find('input').each(function(){ | |
| if($(this).is(':checked')){ | |
| inputID = $(this).attr('id'); | |
| // alert(id); | |
| _howDidIFeelPopup.push(inputID); | |
| } | |
| }); |
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
| function ValidatePassword(str){ | |
| if (str.length < 6) { | |
| return("Password is too short. Must be at least 6 characters."); | |
| } else if (str.length > 50) { | |
| return("Password is too long. Must be no more than 50 characers."); | |
| } else if (str.search(/\d/) == -1) { | |
| return("Password must contain at least one number."); | |
| } else if (str.search(/[a-zA-Z]/) == -1) { | |
| return("Password must contain at least one letter."); |
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
| import UIKit | |
| class ViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate { | |
| var signupActive = true | |
| var activityIndicator: UIActivityIndicatorView = UIActivityIndicatorView() | |
| func displayAlert(title: String, error:String){ |
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
| $(".occassionRow").click -> | |
| alert "changed" | |
| return |
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
| http://ios-blog.co.uk/tutorials/how-to-make-uitextfield-move-up-when-keyboard-is-present/ |
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
| ::-webkit-input-placeholder { | |
| color: @grey !important; | |
| } | |
| :-moz-placeholder { | |
| color: @grey !important; | |
| } | |
| ::-moz-placeholder { | |
| color: @grey !important; | |
| } | |
| :-ms-input-placeholder { |
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
| function ShowAssertiveForm(){ | |
| $('.assertiveFormSlider').animate({ | |
| top: '400px' | |
| }, 600); | |
| } | |
| function HideAssertiveForm(){ | |
| $('.assertiveFormSlider').animate({ | |
| top: '-400px' | |
| }, 400); |
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
| function BuildCompletedJournals(data){ | |
| var i = 0; | |
| var html = ''; | |
| var exists; | |
| var month = ''; | |
| var journal; | |
| var date = ''; | |
| var months = []; |
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
| <?xml version='1.1' encoding='utf-8'?> | |
| <!-- IOS --> | |
| <!-- <widget id="J9EHJHT37L.org.ncfb" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> --> | |
| <!-- ANDROID --> | |
| <widget id="org.ncfb" version="1.1.0" xmlns:android="http://schemas.android.com/apk/res/android" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> --> | |
| <name>NCFB</name> | |
| <description> | |
| North Carolina Farm Bureau | |
| All of your valuable NCFB benefits in the palm of your hand. |