Here is a slightly modified hackathon (original at: https://github.com/sahat/hackathon-starter)
Test user setup :
u: mrmccormack@gmail.com
p: lovisa
You can see my changes on Github.
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>UNTITLED</title> | |
<script src="https://cdn.muicss.com/mui-0.9.27/extra/mui-combined.min.js"></script> | |
<style> |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>UNTITLED</title> | |
<script src="https://cdn.muicss.com/mui-0.9.27/extra/mui-combined.min.js"></script> |
/** | |
* POST /signup | |
* Create a new local account. | |
*/ | |
// TODO: if you try existing email and exist. username, this will trigger an errors | |
// Error: Can't set headers after they are sent. | |
// not sure why this happens, it works sometimes | |
Here is a slightly modified hackathon (original at: https://github.com/sahat/hackathon-starter)
Test user setup :
u: mrmccormack@gmail.com
p: lovisa
You can see my changes on Github.
<?php | |
$favcolor = "red"; | |
switch ($favcolor) | |
{ | |
case "red": | |
echo "Your favorite color is red!"; | |
break; | |
case "blue": | |
echo "Your favorite color is blue!"; |
Published here, username: mrmccormack
NOTE:
const { TextView, WebView, ImageView, ui } = require('tabris') | |
// Using WebView to play responsive YouTube video and responsive images. Utilizes https://picturepan2.github.io/spectre/ | |
const introText = 'This text from Tabris, WebView below using Spectre.css for responsive images and video.' | |
const logo = 'https://eclipsesource.com/wp-content/uploads/2015/10/tabris-icon-logo-small.png' | |
const youtubeURL = 'BzMLA8YIgG0' | |
const relatedImage = 'https://edge.alluremedia.com.au/m/g/2017/05/SAM_0023-01-1.jpeg' |
refreshcomposite.js
is how you might be writing JavaScript|a| b |c |--|--| | e | f|h
const { Button, ImageView, ui } = require('tabris') | |
const widthPhoto = 300 | |
const heightPhoto = 400 | |
function takePhoto () { | |
let onSuccess = image => imgPhoto.image = image | |
let onFail = message => console.log('Camera failed because: ' + message) | |
navigator.camera.getPicture(onSuccess, onFail, { | |
quality: 50, |