1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-02-20 20:21:34 +01:00

Start again

This commit is contained in:
2020-10-04 17:14:00 +02:00
parent c0d3912413
commit 091f119048
4382 changed files with 1762543 additions and 9606 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,65 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../../node_modules/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="../../../build/css/bootstrap-datetimepicker.css">
<script src="../../../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../../../node_modules/bootstrap/dist/js/bootstrap.js"></script>
<script src="../../../node_modules/moment/moment.js"></script>
<script src="../../../src/js/bootstrap-datetimepicker.js"></script>
<style>
.parent{
position: relative;
padding: 40px;
}
.helper{
z-index: -1;
position: absolute;
background-color: #bfb;
top: 0px;
bottom: 0px;
right: 0px;
left: 0px;
opacity: 0.3;
}
.inner{
position: absolute;
background-color: #bbf;
top: 40px;
bottom: 40px;
right: 40px;
left: 40px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>{{v}} - {{h}}</h1>
<br><br><br><br><br><br><br><br><br><br>
<div class="parent">
<div class="helper">
<div class="inner"></div>
</div>
<br><br><br><br><br>
{{{t}}}
<br><br><br><br><br>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br>
</div>
</div>
</div>
<script type="text/javascript">
$('[data-datetimepicker]').datetimepicker({
widgetPositioning:{
vertical: '{{v}}',
horizontal: '{{h}}'
}
});
$('input[data-click-target]').focus();
$('span[data-click-target]').click();
</script>
</body>

View File

@@ -0,0 +1,17 @@
var fs = require("fs");
var base = fs.readFileSync('base.html').toString();
['top','bottom'].forEach(function(v){
['left','right'].forEach(function(h){
['1','2','3','4','5'].forEach(function(t){
var text = fs.readFileSync('t' +t+'.html').toString();
var outFile = 'out/' + t +v.charAt(0) + h.charAt(0) + '.html';
var out = base
.replace(/\{\{\{t\}\}\}/g,text)
.replace(/\{\{v\}\}/g,v)
.replace(/\{\{h\}\}/g,h);
fs.writeFileSync(outFile, out);
});
});
});

View File

@@ -0,0 +1,24 @@
var fs = require('fs');
['top','bottom'].forEach(function(v){
['left','right'].forEach(function(h){
['1','2','3','4','5'].forEach(function(t){
var inFile = 'out/'+ t +v.charAt(0) + h.charAt(0) + '.html';
var outFile = 'pic/'+ t + v.charAt(0) + h.charAt(0) + '.png';
var path = 'file://' + fs.absolute(inFile)
var page = require('webpage').create();
page.viewportSize = {
width: 1000,
height: 800
};;
page.open(path, function(status) {
window.setTimeout(function () {
console.log(status);
page.render(outFile);
setTimeout(function(){
phantom.exit();
}, 0);
},2000);
});
});
});
});

View File

@@ -0,0 +1,11 @@
<div class="input-group">
<span class="input-group-addon">
start time
</span>
<input type="text" name="filter.startTime[]" class="form-control" placeholder="start time" id="start-time-input" value="" data-datetimepicker data-click-target>
<span class="input-group-addon">
end time
</span>
<input type="text" name="filter.endTime[]" class="form-control" placeholder="end time" id="end-time-input" value=""
data-datetimepicker>
</div>

View File

@@ -0,0 +1,7 @@
<div class="input-group">
<span class="input-group-addon">
end time
</span>
<input type="text" name="filter.endTime[]" class="form-control" placeholder="end time" id="end-time-input" value=""
data-datetimepicker data-click-target>
</div>

View File

@@ -0,0 +1,6 @@
<div class='input-group date' data-datetimepicker>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar" data-click-target></span>
</span>
</div>

View File

@@ -0,0 +1,6 @@
<div class='input-group date' data-datetimepicker>
<span class="input-group-addon" data-click-target>
<span class="glyphicon glyphicon-calendar"></span>
</span>
<input type='text' class="form-control" />
</div>

View File

@@ -0,0 +1 @@
<input type='text' class="form-control" data-datetimepicker data-click-target/>

View File

@@ -0,0 +1,11 @@
(function () {
'use strict';
$.ajax('node_modules/moment-timezone/data/packed/latest.json', {
success: function (data) {
moment.tz.load(data);
},
method: 'GET',
dataType: 'json',
async: false
});
}());