Skip to content

Instantly share code, notes, and snippets.

@beve
Created December 13, 2013 17:35
Show Gist options
  • Save beve/7948032 to your computer and use it in GitHub Desktop.
Save beve/7948032 to your computer and use it in GitHub Desktop.
DOJO SUCKS
<!DOCTYPE html>
<!--
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/anabonya.css" />
        <script src="cordova-2.7.0.js"></script>
<script src="js/dojox/mobile/deviceTheme.js"></script>
<script>
</script>
<link href="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojox/mobile/themes/iphone/iphone.css" rel="stylesheet"></link>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojo/dojo.js"
data-dojo-config="async:true"></script>
<title>Hello World</title>
<script>
require(["dojox/mobile/parser", "dojox/mobile"], function(parser) {
// Parse the page for widgets!
parser.parse();
});
</script>
</head>
<body>
<!-- the view or "page"; select it as the "home" screen -->
<div id="settings" data-dojo-type="dojox.mobile.View" data-dojo-props="selected: true">
<!-- a sample heading -->
<h1 data-dojo-type="dojox.mobile.Heading">Settings</h1>
<!-- a rounded rectangle list container -->
<ul data-dojo-type="dojox.mobile.RoundRectList">
<!-- list item with an icon containing a switch -->
<li data-dojo-type="dojox.mobile.ListItem">
Airplane Mode
<!-- the switch -->
<div class="mblItemSwitch" data-dojo-type="dojox.mobile.Switch"></div>
</li>
<li data-dojo-type="dojox.mobile.ListItem"
data-dojo-props="rightText:'mac', moveTo: 'general'">
Wi-Fi
</li>
<li data-dojo-type="dojox.mobile.ListItem"
data-dojo-props="rightText:'AcmePhone'">
Carrier
</li>
</ul>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript">
// app.initialize();
console.log("POUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEETTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT");
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment