File tree Expand file tree Collapse file tree 4 files changed +108
-1
lines changed
Expand file tree Collapse file tree 4 files changed +108
-1
lines changed Original file line number Diff line number Diff line change 1+ # heading {
2+ text-align : center;
3+ font-family : 'Roboto Slab' , serif;
4+ }
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < title > CLNN</ title >
6+ < link rel ="stylesheet " type ="text/css " href ="exp.css ">
7+ </ head >
8+ < body >
9+ < link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css " integrity ="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh " crossorigin ="anonymous " /> < script src ="https://code.jquery.com/jquery-3.4.1.min.js "> </ script > < script src ="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js " integrity ="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo " crossorigin ="anonymous "> </ script > < script src ="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js " integrity ="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6 " crossorigin ="anonymous "> </ script >
10+ < div class ="container-fluid p-4 ">
11+ < div class ="row no-gutters ">
12+ < div class ="col ">
13+
14+ < form name ="myform " method ="post ">
15+ < div class ="form-group ">
16+
17+ < label >
18+ Type of mapping
19+ < select name ="mapping " class ="custom-select ">
20+ </ select >
21+ </ label >
22+
23+ < label >
24+ Region
25+ < select name ="region " class ="custom-select ">
26+ </ select >
27+ </ label >
28+ </ div >
29+
30+ < div class ="form-group ">
31+
32+ < label >
33+ Number of data points
34+ < select name ="numDataPoints " class ="custom-select ">
35+ </ select >
36+ </ label >
37+
38+ < label >
39+ Number of iterations
40+ < select name ="numIterations " class ="custom-select ">
41+ </ select >
42+ </ label >
43+
44+ < label > Iteration step size: < input class ="form-control " type ="text " name =NIstep > </ label >
45+ </ div >
46+
47+ < div class ="form-group ">
48+ < button class ="btn btn-primary " type ="submit " name ="generateData " value ="Generate data "
49+ onclick ="jssetgenflag(); "> Generate data
50+ </ button >
51+ < button class ="btn btn-primary " type ="submit " name ="nextIteration " value ="Next iteration "
52+ onclick ="jssetiternflag(); "> Next
53+ iteration
54+ </ button >
55+ </ div >
56+
57+ < input type =hidden name =genflag value =0 >
58+ < input type =hidden name =iternflag value =0 >
59+ </ form >
60+ </ div >
61+ < div class ="col image-container ">
62+ </ div >
63+ </ div >
64+ </ div >
65+ < script src ="../js/utils.js "> </ script >
66+ < script src ="exp.js "> </ script >
67+ </ body >
68+ </ html >
Original file line number Diff line number Diff line change 1+ window . EXP_NAME = "clnn" ;
2+ const map_arr = { 1 : "2D-2D" } ;
3+ const region_arr = { 1 : "Square" , 2 : "Circle" , 3 : "Triangle" } ;
4+ const numDataPoints_arr = { 100 : "100" , 300 : "300" , 1000 : "1000" } ;
5+ const numIterations_arr = { 20 : "20" , 50 : "50" , 100 : "100" } ;
6+
7+ const typeOfMapping = 1 ;
8+ const regionType = 1 ;
9+ const numIterations = 20 ;
10+ const numDataPoints = 100 ;
11+ const NIstep = 1 ;
12+
13+ let isSetGen = true ;
14+
15+ function jssetgenflag ( ) {
16+ isSetGen = true ;
17+ }
18+
19+ function jssetiternflag ( ) {
20+ isSetGen = false ;
21+ }
22+
23+ window . extraArgs = function ( ) {
24+ return { type : isSetGen ? "1" : "0" , inputDim : "2" } ;
25+ } ;
26+ window . appenditure = {
27+ "mapping" : map_arr ,
28+ "region" : region_arr ,
29+ "numDataPoints" : numDataPoints_arr ,
30+ "numIterations" : numIterations_arr
31+ } ;
32+
33+
34+ window . otherSetters = { NIstep} ;
Original file line number Diff line number Diff line change 77< body >
88 <!-- Your code goes here-->
99
10- <!-- Add JS at the bottom of HTML file -->
10+ <!-- Add JS at the bottom of HTML file -->
11+ < iframe src ="exp.html " width ="1200 " height ="1000 "> </ iframe >
1112 < script src ="./js/main.js "> </ script >
1213</ body >
1314</ html >
You can’t perform that action at this time.
0 commit comments