-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestTools.html
96 lines (95 loc) · 2.66 KB
/
TestTools.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html manifest="TestTools.manifest">
<head>
<meta charset="utf-8"/>
<script type="text/javascript" src="SugarCubes_min.js">
</script>
<script type="text/javascript">
SC.init({
tools: {
baseDir: ""
, list: [ "AudioToolbox", "WebTools", "WebEnergize" ]
, mainConfig: {
init: SC.pauseForever()
, delay: 30
}
}
, appConfig: {
audioSupport: true
, appTitle: "SC_ToolsTest"
, appAuthors: "Jean-Ferdy Susini"
, appDescription: ""
, splashConfig: {
title: "Ma WebApp SugarCubes"
, title_style: "background-color: rgba(255,255,255, 0.6);font-size:12vh;font-weight:bold; text-shadow:0.5vw 0.5vh 0.5vmax white; padding:10px"
, start: "Démarrer !"
, startEvt: SC.evt("evt")
, background: "url(images/png/bg-test.png) no-repeat center"
}
, controler: true
, controler_closed: true
, controler_style: "SC_Tools_Panel.css"
, controler_inspectorEnabled: true
, startup_img: [
{
rsrc: "images/png/st_1536x2008.png"
, media: "(device-width: 768px) and (device-height: 1024px)"
+"and (-webkit-device-pixel-ratio: 2)"
+"and (orientation: portrait)"
}
, {
rsrc: "images/png/st_1496x2048.png"
, media: "(device-width: 768px) and (device-height: 1024px)"
+"and (-webkit-device-pixel-ratio: 2)"
+"and (orientation: landscape)"
}
]
}
});
SC.tools.main.setStdOut(SC.writeInConsole);
SC.tools.Web.initInspector();
</script>
<style>
.toto{
border:1px solid black;
}
</style>
</head>
<body>
<script type="text/javascript" >
SC.tools.displaySplash();
var Samp_imgClick= SC.sampled('image_click');
var t= [];
window.addEventListener("load", function(){
t.push(SC.tools.Web.makeImage({
src : "images/png/banane.png"
, title : "GROAR !"
, cl : "toto"
, evt_click: Samp_imgClick
, m : SC.tools.m
}));
var tmp = t[t.length-1]
document.body.appendChild(tmp);
t.push(SC.tools.Web.makeP({
inH : "Hello World !"
, title : "Ceci est un paragraphe !"
, cl : "toto"
}));
tmp = t[t.length-1]
document.body.appendChild(tmp);
});
</script>
<table>
</table>
<script>
SC.tools.Web.energize({
inH:"<caption> Hello! </caption><tr><td>Hello</td><td>World !</td></tr>"
, title:"Essai"
});
</script>
<script defer type="text/javascript" src="sounds.js">
</script>
<script defer type="text/javascript" src="sc_app_testtools.js">
</script>
</body>
</html>