1
+ < div id ="glowscript " class ="glowscript ">
2
+ < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 ">
3
+ < link type ="text/css " href ="https://s3.amazonaws.com/glowscript/css/redmond/2.1/jquery-ui.custom.css " rel ="stylesheet " />
4
+ < link href ="https://fonts.googleapis.com/css?family=Inconsolata " rel ="stylesheet " type ="text/css " />
5
+ < link type ="text/css " href ="https://s3.amazonaws.com/glowscript/css/ide.css " rel ="stylesheet " />
6
+ < script type ="text/javascript " src ="https://s3.amazonaws.com/glowscript/lib/jquery/2.1/jquery.min.js "> </ script >
7
+ < script type ="text/javascript " src ="https://s3.amazonaws.com/glowscript/lib/jquery/2.1/jquery-ui.custom.min.js "> </ script >
8
+ < script type ="text/javascript " src ="package/glow.2.7.min.js "> </ script >
9
+ < script type ="text/javascript " src ="package/RSrun.2.7.min.js "> </ script >
10
+ < script type ="text/javascript "> <!--//--><![CDATA[//><!--
11
+
12
+ // START JAVASCRIPT
13
+ ; ( function ( ) { "use strict" ;
14
+
15
+ var regeneratorRuntime = typeof srequire === 'function' ? srequire ( "streamline-runtime/lib/callbacks/regenerator" ) : Streamline . srequire ( "streamline-runtime/lib/callbacks/regenerator" ) ;
16
+
17
+ var _streamline = typeof srequire === 'function' ? srequire ( "streamline-runtime/lib/callbacks/runtime" ) : Streamline . srequire ( "streamline-runtime/lib/callbacks/runtime" ) ;
18
+
19
+ var _filename = "unknown" ;
20
+
21
+ var main = _streamline . async ( regeneratorRuntime . mark ( function _$$main$$ ( _2 ) {
22
+ var version , aaa , box , sphere , simple_sphere , cylinder , pyramid , cone , helix , ellipsoid , ring , arrow , compound , display , vector , print , type , scene , RS_ls , __name__ , strings ;
23
+
24
+ return regeneratorRuntime . wrap ( function _$$main$$$ ( _context ) {
25
+ while ( 1 ) {
26
+ switch ( _context . prev = _context . next ) {
27
+ case 0 :
28
+ version = RS_list_decorate ( [ "2.7" , "glowscript" ] ) ;
29
+ Array . prototype [ '+' ] = function ( r ) {
30
+ return this . concat ( r ) ;
31
+ } ;
32
+ Array . prototype [ '*' ] = function ( r ) {
33
+ return __array_times_number ( this , r ) ;
34
+ } ;
35
+ __name__ = '__main__' ;
36
+
37
+ window . __GSlang = "vpython" ;
38
+ box = vp_box ;
39
+ sphere = vp_sphere ;
40
+ simple_sphere = vp_simple_sphere ;
41
+ cylinder = vp_cylinder ;
42
+ pyramid = vp_pyramid ;
43
+ cone = vp_cone ;
44
+ helix = vp_helix ;
45
+ ellipsoid = vp_ellipsoid ;
46
+ ring = vp_ring ;
47
+ arrow = vp_arrow ;
48
+ compound = vp_compound ;
49
+ display = canvas ;
50
+ vector = vec ;
51
+ print = GSprint ;
52
+ type = pytype ;
53
+ scene = canvas ( ) ;
54
+ strings = RS_modules . pythonize . strings ;
55
+
56
+
57
+ strings ( ) ;
58
+ "2" ;
59
+ cone ( ) ;
60
+
61
+ case 25 :
62
+ case "end" :
63
+ return _context . stop ( ) ;
64
+ }
65
+ }
66
+ } , _$$main$$ , this ) ;
67
+ } ) , 0 , 1 ) ;
68
+
69
+ var RS_modules = { } ;
70
+ RS_modules . pythonize = { } ;
71
+
72
+ ( function ( ) {
73
+ var strings = function strings ( ) {
74
+ var string_funcs , exclude , name ;
75
+ string_funcs = set ( "capitalize strip lstrip rstrip islower isupper isspace lower upper swapcase center count endswith startswith find rfind index rindex format join ljust rjust partition rpartition replace split rsplit splitlines zfill" . split ( " " ) ) ;
76
+ if ( ! arguments . length ) {
77
+ exclude = function ( ) {
78
+ var s = RS_set ( ) ;
79
+ s . jsset . add ( "split" ) ;
80
+ s . jsset . add ( "replace" ) ;
81
+ return s ;
82
+ } ( ) ;
83
+ } else if ( arguments [ 0 ] ) {
84
+ exclude = Array . prototype . slice . call ( arguments ) ;
85
+ } else {
86
+ exclude = null ;
87
+ }
88
+ if ( exclude ) {
89
+ string_funcs = string_funcs . difference ( set ( exclude ) ) ;
90
+ }
91
+ var RS_Iter0 = RS_Iterable ( string_funcs ) ;
92
+ for ( var RS_Index0 = 0 ; RS_Index0 [ "<" ] ( RS_Iter0 . length ) ; RS_Index0 ++ ) {
93
+ name = RS_Iter0 [ RS_Index0 ] ;
94
+ ( RS_expr_temp = String . prototype ) [ typeof name === "number" && name [ "<" ] ( 0 ) ? RS_expr_temp . length [ "+" ] ( name ) : name ] = ( RS_expr_temp = RS_str . prototype ) [ typeof name === "number" && name [ "<" ] ( 0 ) ? RS_expr_temp . length [ "+" ] ( name ) : name ] ;
95
+ }
96
+ } ;
97
+
98
+ ;
99
+
100
+ RS_modules . pythonize . strings = strings ;
101
+ } ) ( ) ;
102
+ ;
103
+ if ( ! main . __argnames__ ) Object . defineProperties ( main , {
104
+ __argnames__ : { value : [ "_" ] }
105
+ } ) ;
106
+ ; $ ( function ( ) { window . __context = { glowscript_container : $ ( "#glowscript" ) . removeAttr ( "id" ) } ;
107
+
108
+ main ( function ( err ) {
109
+ var aaaaaaa = 1
110
+ } )
111
+
112
+ } ) } ) ( )
113
+ // END JAVASCRIPT
114
+
115
+ //--><!]]> </ script >
116
+ </ div >
0 commit comments