test.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Lungo Flexbox - SDK</title>
  6. <meta name="description" content="">
  7. <meta name="author" content="Javier Jiménez Villar (@soyjavi)">
  8. <meta name="HandheldFriendly" content="True">
  9. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  12. <meta name="format-detection" content="telephone=no">
  13. <meta http-equiv="cleartype" content="on">
  14. <!-- Main Stylesheet -->
  15. <link rel="stylesheet" href="components/lungo.brownie/lungo.css">
  16. <link rel="stylesheet" href="components/lungo.brownie/lungo.theme.css">
  17. <link rel="stylesheet" href="components/lungo.icon/lungo.icon.css">
  18. </head>
  19. <body class="app">
  20. <section id="form" data-transition="slide">
  21. <header data-title="Form Elements" data-back="home">
  22. <nav class="right">
  23. <button data-label="test"></button>
  24. <button data-icon="edit"></button>
  25. </nav>
  26. </header>
  27. <nav data-control="groupbar">
  28. <a href="#" data-view-article="form-normal" data-label="Normal" class="active"></a>
  29. <a href="#" data-view-article="form-indented" data-label="Indented"></a>
  30. <a href="#" data-view-article="form-special" data-label="Specials"></a>
  31. </nav>
  32. <article id="form-normal" class="scroll">
  33. <div class="form">
  34. <!-- LABEL + INPUT -->
  35. <fieldset>
  36. <label>label</label>
  37. <input type="text" placeholder="value">
  38. <label>label</label>
  39. <input type="text" placeholder="value on right" class="text align_right error">
  40. <label class="absolute">label</label>
  41. <input type="text" placeholder="value on center" class="large text bold align_center">
  42. <label>label</label>
  43. <label class="select ">
  44. <select class="custom">
  45. <option value="1">HTML5 Jedi</option>
  46. <option value="2">Two</option>
  47. <option value="3">Three</option>
  48. </select>
  49. </label>
  50. <label>label</label>
  51. <input type="date" class="align_right" placeholder="Select finish" value="10/04/1980"/>
  52. </fieldset>
  53. </fieldset>
  54. <!-- INPUT -->
  55. <fieldset>
  56. <input type="text" id="description" class="text align_center" placeholder="value"/>
  57. </fieldset>
  58. <fieldset>
  59. <textarea placeholder="Write something..."></textarea>
  60. </fieldset>
  61. <fieldset>
  62. <label class="select">
  63. <select class="custom">
  64. <option value="1">HTML5 Jedi</option>
  65. <option value="2">Two</option>
  66. <option value="3">Three</option>
  67. </select>
  68. </label>
  69. </fieldset>
  70. <fieldset>
  71. <input type="date" class="align_right" placeholder="Select finish" value="10/04/1980"/>
  72. </fieldset>
  73. <fieldset>
  74. <label class="anchor">label Lorem ipsum dolor sit amet</label>
  75. <div data-control-checkbox="check" class="inline right"></div>
  76. </fieldset>
  77. <fieldset data-icon="plus">
  78. <label>label</label>
  79. <input type="text" value="value" />
  80. </fieldset>
  81. </div>
  82. </article>
  83. <article id="form-indented" class="indented scroll">
  84. <div class="form">
  85. <!-- LABEL + INPUT -->
  86. <label>label + input</label>
  87. <fieldset class="radius shadow">
  88. <label>label</label>
  89. <input type="text" placeholder="value">
  90. <label>label</label>
  91. <input type="text" placeholder="value on right" class="text align_right error">
  92. <label class="absolute">label</label>
  93. <input type="text" placeholder="value on center" class="large text align_center">
  94. <label>label</label>
  95. <label class="select ">
  96. <select class="custom">
  97. <option value="1">HTML5 Jedi</option>
  98. <option value="2">Two</option>
  99. <option value="3">Three</option>
  100. </select>
  101. </label>
  102. <label>label</label>
  103. <input type="date" class="align_right" placeholder="Select date" value="10/04/1980"/>
  104. </fieldset>
  105. <!-- INPUT -->
  106. <label>input</label>
  107. <fieldset class="radius-top">
  108. <input type="text" id="description" class="text align_center" placeholder="value"/>
  109. </fieldset>
  110. <fieldset>
  111. <textarea placeholder="Write something..."></textarea>
  112. </fieldset>
  113. <fieldset>
  114. <label class="select">
  115. <select class="custom">
  116. <option value="1">HTML5 Jedi</option>
  117. <option value="2">Two</option>
  118. <option value="3">Three</option>
  119. </select>
  120. </label>
  121. </fieldset>
  122. <fieldset>
  123. <label class="anchor">label Lorem ipsum dolor sit amet</label>
  124. <div data-control-checkbox="check_indent" class="inline right"></div>
  125. </fieldset>
  126. <fieldset class="radius-bottom shadow">
  127. <input type="date" class="align_right" placeholder="Select finish" value="10/04/1980"/>
  128. </fieldset>
  129. <label>label + input + icon</label>
  130. <fieldset data-icon="plus">
  131. <label>label</label>
  132. <input type="text" value="value" />
  133. </fieldset>
  134. </div>
  135. </article>
  136. <article id="form-special" class=" indented scroll">
  137. <div class="form" >
  138. <label>Specials</label>
  139. <fieldset data-icon="search">
  140. <input type="search" placeholder="Search..."/>
  141. </fieldset>
  142. <label>Address</label>
  143. <input type="text" placeholder="placeholder" class="border" />
  144. <input type="text" placeholder="placeholder" class="border error" value="error" />
  145. <input type="text" placeholder="placeholder" class="border success" value="success" />
  146. <div class="layout horizontal">
  147. <div data-layout="third">
  148. <label>Address</label>
  149. <input type="text" placeholder="placeholder" class="border" />
  150. </div>
  151. <div data-layout="primary">
  152. <label>Pin Code</label>
  153. <input type="password" value="value" class="border" disabled/>
  154. </div>
  155. </div>
  156. <label>Select your skill</label>
  157. <label class="select border">
  158. <select>
  159. <option value="1">HTML5 Jedi</option>
  160. <option value="2">Two</option>
  161. <option value="3">Three</option>
  162. </select>
  163. </label>
  164. <label>Progress</label>
  165. <div id="progress-normal" data-progress="25%"></div>
  166. <label>Range</label>
  167. <input type="range" placeholder="type your name" min="0" max="8" />
  168. <label>Checkbox</label>
  169. <div class="layout horizontal">
  170. <div>
  171. <div data-control-checkbox="normal"></div>
  172. </div>
  173. <div>
  174. <div data-control-checkbox="twit-example" class="twitter"></div>
  175. </div>
  176. <div>
  177. <div data-control-checkbox="ok-example" class="ok"></div>
  178. </div>
  179. </div>
  180. <br/>
  181. <button class="anchor margin-bottom" data-label="Normal"></button>
  182. <button class="anchor accept margin-bottom" data-icon="ok" data-label="Accept"></button>
  183. <button class="anchor cancel margin-bottom" data-icon="remove" data-label="Cancel"></button>
  184. <button class="anchor secondary margin-bottom" data-icon="plus" data-label="Secondary"></button>
  185. <button class="anchor disabled" data-label="Disabled"></button>
  186. </div>
  187. </article>
  188. </section>
  189. <section id="main" data-transition="slide" data-aside="features" data-children="folk">
  190. <header>
  191. <nav class="left">
  192. <a href="#" data-view-aside="features" data-icon="menu"></a>
  193. <a href="#" data-view-menu="options" data-icon="star"></a>
  194. <a href="#" data-icon="user" class="button" data-article="products" data-label="Folks" data-view-article="folks"></a>
  195. <a href="#" class="button" data-article="products" data-label="Folks" data-view-article="folks"></a>
  196. <a href="#" data-icon="user" class="button" data-article="products" data-view-article="folks"></a>
  197. </nav>
  198. <div class="title centered">Folks</div>
  199. <nav class="right">
  200. <button data-icon="user" class="button" data-article="folks" data-label="Products" data-view-article="products" data-async="static/articles/products.html"></button>
  201. </nav>
  202. </header>
  203. <nav id="options" data-control="menu" class="icons">
  204. <a href="#" data-view-article="folks" data-icon="star" data-title="Folks">Folks</a>
  205. <a href="#" data-view-article="products" data-icon="heart" data-title="Explore">Explore</a>
  206. <a href="#" data-view-article="article" data-icon="comments">Activity</a>
  207. <a href="#" data-view-article="article" data-icon="user">Profile</a>
  208. <a href="#" data-view-section="folk" data-icon="thumbs-up">Folk</a>
  209. </nav>
  210. <nav data-control="groupbar" data-article="folks">
  211. <a href="#" data-view-article="folks" data-label="Folks" data-count="11"></a>
  212. <a href="#" data-view-article="products" data-async="static/articles/products.html" data-label="Products" id="products"></a>
  213. </nav>
  214. <article id="folks" class="active list scroll indente-d">
  215. <ul>
  216. <li class="thumb selectable arrow" data-view-section="folk" data-image="http://cdn.tapquo.com/photos/javi.jpg">
  217. <a href="#" >
  218. <strong>Javi Jiménez</strong>
  219. <small>Founder & CTO</small>
  220. </a>
  221. </li>
  222. <li class="thumb" data-image="http://cdn.tapquo.com/photos/ina.jpg">
  223. <strong>Ignacio Olalde</strong>
  224. <small>... consectetur adipisicing elit.</small>
  225. </li>
  226. <li class="thumb" data-image="http://cdn.tapquo.com/photos/aitor.jpg">
  227. <strong>Aitor Jimenez</strong>
  228. <small>... consectetur adipisicing elit.</small>
  229. </li>
  230. <li class="thumb" data-image="http://cdn.tapquo.com/photos/manrique.jpg">
  231. <strong>Lorem ipsum dolor sit amet</strong>
  232. <small>... consectetur adipisicing elit.</small>
  233. </li>
  234. <li class="thumb" data-image="http://cdn.tapquo.com/photos/josu.jpg">
  235. <strong>Lorem ipsum dolor sit amet</strong>
  236. <small>... consectetur adipisicing elit.</small>
  237. </li>
  238. <li class="thumb" data-image="http://cdn.tapquo.com/photos/inigo.jpg">
  239. <strong>Lorem ipsum dolor sit amet</strong>
  240. <small>... consectetur adipisicing elit.</small>
  241. </li>
  242. <li class="thumb" data-image="http://cdn.tapquo.com/photos/jany.jpg">
  243. <strong>Lorem ipsum dolor sit amet</strong>
  244. <small>... consectetur adipisicing elit.</small>
  245. </li>
  246. <li class="thumb" data-image="http://cdn.tapquo.com/photos/german.jpg">
  247. <strong>Lorem ipsum dolor sit amet</strong>
  248. <small>... consectetur adipisicing elit.</small>
  249. </li>
  250. <li class="thumb" data-image="http://cdn.tapquo.com/photos/cata.jpg">
  251. <strong>Lorem ipsum dolor sit amet</strong>
  252. <small>... consectetur adipisicing elit.</small>
  253. </li>
  254. <li class="thumb" data-image="http://cdn.tapquo.com/photos/oihane.jpg">
  255. <strong>Lorem ipsum dolor sit amet</strong>
  256. <small>... consectetur adipisicing elit.</small>
  257. </li>
  258. <li class="thumb" data-image="http://cdn.tapquo.com/photos/aritz.jpg">
  259. <strong>Lorem ipsum dolor sit amet</strong>
  260. <small>... consectetur adipisicing elit.</small>
  261. </li>
  262. </ul>
  263. </article>
  264. <article id="sub">
  265. sub
  266. </article>
  267. <!--
  268. <article id="products" class="list scroll">
  269. <ul>
  270. <li class="selectable" data-image="http://cdn.tapquo.com/lungo/icon-144.png">
  271. <a href="#" data-view-section="quojs">
  272. <strong>QuoJS</strong>
  273. <small>Micro Mobile JavaScript Library</small>
  274. </a>
  275. </li>
  276. <li data-image="http://cdn.tapquo.com/lungo/icon-144.png" data-view-section="list" data-async="static/sections/list.html">
  277. <strong>TukTuk</strong>
  278. <small>Lorem ipsum dolor sit amet</small>
  279. </li>
  280. <li data-image="http://cdn.tapquo.com/lungo/icon-144.png">
  281. <strong>Monocle</strong>
  282. <small>Lorem ipsum dolor sit amet</small>
  283. </li>
  284. <li data-image="http://cdn.tapquo.com/lungo/icon-144.png">
  285. <strong>LungoJS</strong>
  286. <small>Lorem ipsum dolor sit amet</small>
  287. </li>
  288. </ul>
  289. </article>
  290. -->
  291. <footer>
  292. <nav>
  293. <a href="#" data-view-article="folks" data-icon="desktop" data-count="11"></a>
  294. <a href="#" data-view-article="products" data-icon="tablet" data-count="5"></a>
  295. </nav>
  296. </footer>
  297. </section>
  298. <section id="test">
  299. <header data-title="Test" data-back="home"></header>
  300. <article></article>
  301. </section>
  302. <section id='folk' data-transition="slide" data-aside="features" data-children="x">
  303. <header data-title='Javi Jimenez'>
  304. <nav>
  305. <a href="#" data-view-section="back" data-label="Back" class="button"></a>
  306. </nav>
  307. </header>
  308. <article id='f1' class='active list scroll'>
  309. <ul>
  310. <li>
  311. <strong>lorem</strong>
  312. </li>
  313. <li>
  314. <strong>lorem</strong>
  315. </li>
  316. <li>
  317. <strong>lorem</strong>
  318. </li>
  319. <li>
  320. <strong>lorem</strong>
  321. </li>
  322. <li>
  323. <strong>lorem</strong>
  324. </li>
  325. <li>
  326. <strong>lorem</strong>
  327. </li>
  328. <li>
  329. <strong>lorem</strong>
  330. </li>
  331. <li>
  332. <strong>lorem</strong>
  333. </li>
  334. <li>
  335. <strong>lorem</strong>
  336. </li>
  337. <li>
  338. <strong>lorem</strong>
  339. </li>
  340. <li>
  341. <strong>lorem</strong>
  342. </li>
  343. <li>
  344. <strong>lorem</strong>
  345. </li>
  346. <li>
  347. <strong>lorem</strong>
  348. </li>
  349. <li>
  350. <strong>lorem</strong>
  351. </li>
  352. <li>
  353. <strong>lorem</strong>
  354. </li>
  355. </ul>
  356. </article>
  357. </section>
  358. <section id='quojs' data-transition="slide" data-aside="features2">
  359. <header data-title='QuoJS'>
  360. <nav>
  361. <a href="#" data-view-section="back" data-label="Back" class="button"></a>
  362. </nav>
  363. </header>
  364. <article id='q1' class='active'></article>
  365. </section>
  366. <aside id="features" >
  367. <header data-title="Features">
  368. <nav class="right">
  369. <a href="#" class="buttons" data-icon="settings"></a>
  370. </nav>
  371. </header>
  372. <article class="list scroll active">
  373. <ul>
  374. <!-- Basic Layout -->
  375. <li data-view-article="folks" data-title="Profile" data-icon="user">
  376. <a href="#">
  377. <div class="tag right">11</div>
  378. <strong>Folks</strong>
  379. <small>Discover our team!</small>
  380. </a>
  381. </li>
  382. <li data-view-article="products" data-title="Third Parties" data-async="static/articles/products.html">
  383. <div class="tag right">5</div>
  384. <strong>Products</strong>
  385. <small>Fueled by coffee</small>
  386. </li>
  387. <li data-view-section="test" data-icon="desktop">
  388. <strong>Section TEST</strong>
  389. </li>
  390. <li data-view-section="folk" data-view-article="f1" data-icon="desktop">
  391. <div class="tag right">5</div>
  392. <strong>Folk F1</strong>
  393. <small>Fueled by coffee</small>
  394. </li>
  395. </ul>
  396. </article>
  397. </aside>
  398. <aside id="features2" class="right">
  399. <header data-title="Features 2"></header>
  400. <article class="list scroll active">
  401. <ul>
  402. <!-- Basic Layout -->
  403. <li class="active">
  404. <a href="#layout-art1" data-router="article" data-title="Profile" class="active">
  405. <strong>Profile</strong></a>
  406. </li>
  407. </ul>
  408. </article>
  409. </aside>
  410. <!-- Lungo dependencies -->
  411. <script src="components/quojs/quo.js"></script>
  412. <script src="components/lungo.brownie/lungo.debug.js"></script>
  413. <!-- LungoJS - Sandbox App -->
  414. <script>
  415. Lungo.init({
  416. name: 'Flexbox',
  417. version: '2.2',
  418. history: false
  419. //,
  420. // resources: ['static/sections/list.html']
  421. });
  422. Lungo.ready(function() {
  423. // Lungo.Router.article("main", "sub");
  424. Lungo.Element.count("section#main nav #products", 5);
  425. // Lungo.Notification.success('Title', 'Description', 'ok', 10000);
  426. // Lungo.Notification.push("Connection stablished.", "ok");
  427. // setTimeout(function() {
  428. // Lungo.Notification.show();
  429. // }, 2000);
  430. // setTimeout(function() {
  431. // Lungo.Notification.error('Title', 'Description', 'ok', 10000);
  432. // }, 4000);
  433. // Lungo.Article.clean("form-normal", "edit", "Form empty", "Please check if you have an internet connection.", "Ok, I'll check tomorrow")
  434. // Lungo.Article.clean("form-normal")
  435. });
  436. // Lungo.Notification.show("hola", "user");
  437. // Lungo.Notification.show();
  438. // Lungo.Notification.confirm({
  439. // icon: 'user',
  440. // title: 'Lorem ipsum dolor sit amet, consectetur adipisicing.',
  441. // description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo amet nulla dolorum hic eum debitis dolorem expedita? Commodi molestiae tempora totam explicabo sed deserunt cum iusto eos perspiciatis ea in.',
  442. // accept: {
  443. // icon: 'checkmark',
  444. // label: 'Accept',
  445. // callback: function(){ alert("Yes!"); }
  446. // },
  447. // cancel: {
  448. // icon: 'close',
  449. // label: 'Cancel',
  450. // callback: function(){ alert("No!"); }
  451. // }
  452. // });
  453. </script>
  454. </body>
  455. </html>