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
bb.init({ | |
onscreenready: function (element, id) { | |
if (id == "main") { | |
// code to be executed before the "main" screen is loaded. | |
} else if (id == "add") { | |
// code to be executed before the "add" screen is loaded. | |
} | |
}, | |
ondomready: function (element, id) { | |
if (id == "main") { |
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
<div data-bb-type="item" data-bb-title="Title goes here" data-bb-img="images/test.png" onclick="alert('this was clicked')">A description is welcome.</div> |
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
bb.init({ | |
onscreenready: function (element, id) { | |
if (id == "main") { | |
var item = document.createElement('div'); | |
item.setAttribute('data-bb-type','item'); | |
item.setAttribute('data-bb-title','my title'); | |
item.innerHTML = 'my description'; | |
item.setAttribute('data-bb-img','foo.png'); | |
document.getElementById('mylist').appendItem(item); |
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
<script src="phonegap-1.0.0.js" type="text/javascript" charset="utf-8"></script> | |
<script src="NativeControls.js" type="text/javascript" charset="utf-8"></script> |
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
nativeControls.showTabBar(); | |
nativeControls.showTabBarItems("books", "finished", "about"); | |
nativeControls.selectTabBarItem("books"); |
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
nativeControls.createTabBarItem( | |
"books", | |
"Books", | |
"/www/tabs/book.png", | |
{"onSelect": function() { | |
// Do something | |
}} | |
); |
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
nativeControls = window.plugins.nativeControls; | |
nativeControls.createTabBar(); |
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("dart:io"); | |
#import("Target.dart"); | |
void main() { | |
var Target = new Target(); | |
File script = new File(new Options().script); | |
script.directory((Directory d) { | |
Target.createServer(d.path + "/public", 8800); |
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
#define _LEGACY_HEADERS | |
#include <pic.h> | |
#include <pic12f629.h> | |
__CONFIG(UNPROTECT & BORDIS & MCLRDIS & PWRTEN & WDTDIS & INTIO); | |
void delay(char value); | |
void d1(); |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Martin Kleppe <http://twitter.com/aemkei> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |