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
| .ui-icon-myapp-settings { | |
| background: url("settings.png") no-repeat rgba(0, 0, 0, 0.4) !important; | |
| } |
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
| @media only screen and (-webkit-min-device-pixel-ratio: 2) { | |
| // declarations go here | |
| } |
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
| @media only screen and (-webkit-min-device-pixel-ratio: 2) { | |
| .ui-icon-myapp-settings { | |
| background: url("[email protected]") no-repeat rgba(0, 0, 0, 0.4) !important; | |
| background-size: 18px 18px; | |
| } | |
| // more declarations here | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Intro to jQuery Mobile</title> | |
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" /> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script> | |
| </head> | |
| <body> | |
| <div data-role="page" id="intro"> |
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
| <cfcomponent output="false" displayname="Tag Based CFC" name="userBean"> | |
| <cfset VARIABLES.username = '> | |
| <cfset VARIABLES.password = '> | |
| <cffunction name="init" returntype="userBean" access="public"> | |
| <cfargument name="username" required="true" type="string"> | |
| <cfargument name="password" required="true" type="string"> | |
| <cfset VARIABLES.username = ARGUMENTS.username> | |
| <cfset VARIABLES.password = ARGUMENTS.password> | |
| </cffunction> | |
| <cffunction name="getUsername" returntype="string" access="public"> |
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
| <cfcomponent output="false" accessors="true" displayname="Tag Based CFC" name="userBean"> | |
| <cfproperty name="username" /> | |
| <cfproperty name="password" /> | |
| <cffunction name="init" returntype="userBean" access="public"> | |
| <cfargument name="username" required="true" type="string"> | |
| <cfargument name="password" required="true" type="string"> | |
| <cfset setUsername( ARGUMENTS.username ) /> | |
| <cfset setPassword( ARGUMENTS.password ) /> | |
| <cfreturn this /> | |
| </cffunction> |
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
| component { | |
| property string username; | |
| property string password; | |
| public tagCFC function init(required string username, required string password) { | |
| setUsername(ARGUMENTS.username); | |
| setPassword(ARGUMENTS.password); | |
| return this; | |
| } | |
| } |
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
| <cfscript> | |
| VARIABLES.user = new User(username='thumbelina', password='longhair'); | |
| VARIALBES.getUserName() // returns thumbelina | |
| VARIABLES.setPassword('abc123') // sets password | |
| </cfscript> |
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 morse = { | |
| a: '.-', b: '-...', c: '-.-.', d: '-..', | |
| e: '.', f: '..-.', g: '--.', h: '....', | |
| i: '..', j: '.---', k: '-.-', l: '.-..', | |
| m: '--', n: '-.', o: '---', p: '.--.', | |
| q: '--.-', r: '.-.', s: '...', t: '-', | |
| u: '..-', v: '...-', w: '.--', x: '-..-', | |
| y: '-.--', z: '--..', 0: '-----', 1: '.----', | |
| 2: '..---', 3: '...--', 4: '....-', 5: '.....', | |
| 6: '-....', 7: '--...', 8: '---..', 9: '----.' |
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
| //preload the sounds | |
| var snd = {}; | |
| var shortClip = air.File.applicationDirectory.resolvePath("assets/short.mp3"); | |
| var longClip = air.File.applicationDirectory.resolvePath("assets/long.mp3"); | |
| snd['.'] = new air.Sound(new air.URLRequest(shortClip.url)); | |
| snd['-'] = new air.Sound(new air.URLRequest(longClip.url)); |