-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
179 lines (167 loc) · 7.04 KB
/
index.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<head>
<title>Tutor</title>
<meta name="generator" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min_4.6.0.css">
<link rel="stylesheet" type="text/css" href="css/my_bootstrap.css">
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/jquery.ui.js"></script>
<script type="text/javascript" src="scripts/popper.min.js"></script>
<script type="text/javascript" src="scripts/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style>
body {
padding-top: 4.5rem;
}
.icon-inner {
font-size: 45px;
margin-bottom: 5px;
}
/*links*/
.icon-inner a {
color: rgb(255 255 255 / 0.5);
text-decoration: none;
}
.icon-inner a:hover,
.icon-inner a:focus {
color: rgb(255 255 255 / 0.9);
text-decoration: none;
}
.icon-inner a:focus {
outline: thin dotted #333;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md fixed-top bg-dark navbar-dark">
<div class="container-xl">
<a class="navbar-brand" href="#">
<img src="./img/logo.png" alt="" width="30" height="30" class="d-inline-block align-text-top">
Tutor
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample07XL" aria-controls="navbarsExample07XL" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExample07XL">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="./index.html">Сложение XX-XXXX</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./index2.html">Сложение XXXXX-XXXXXXX</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./matrix.html">Матрицы X-XX</a>
</li>
</ul>
</div>
</div>
</nav>
<main role="main" class="container">
<div class="row">
<div class="col-md-12">
<div class="card mb-4 shadow-sm">
<div class="card-body">
<h5 class="card-title">Выражение XX</h5>
<p class="card-text overflow-auto" style="max-width: 260px; max-height: 50px;">
<module id="aX"></module> + <module id="bX"></module>
</p>
<p>
<button class="btn btn-success" type="button" data-toggle="collapse" data-target="#X" aria-expanded="false" aria-controls="X">
Открыть ответ
</button>
</p>
<div class="collapse" id="X">
<div class="card card-body">
<result id="cX"></result>
</div>
</div>
</div>
</div>
<div class="card mb-4 shadow-sm">
<div class="card-body">
<h5 class="card-title">Выражение XXX</h5>
<p class="card-text overflow-auto" style="max-width: 260px; max-height: 50px;">
<module id="aXX"></module> + <module id="bXX"></module>
</p>
<p>
<button class="btn btn-success" type="button" data-toggle="collapse" data-target="#XX" aria-expanded="false" aria-controls="XX">
Открыть ответ
</button>
</p>
<div class="collapse" id="XX">
<div class="card card-body">
<result id="cXX"></result>
</div>
</div>
</div>
</div>
<div class="card mb-4 shadow-sm">
<div class="card-body">
<h5 class="card-title">Выражение XXXX</h5>
<p class="card-text overflow-auto" style="max-width: 260px; max-height: 50px;">
<module id="aXXX"></module> + <module id="bXXX"></module>
</p>
<p>
<button class="btn btn-success" type="button" data-toggle="collapse" data-target="#XXX" aria-expanded="false" aria-controls="XXX">
Открыть ответ
</button>
</p>
<div class="collapse" id="XXX">
<div class="card card-body">
<result id="cXXX"></result>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</body>
<script>
//Mt_rand php in js
module = function mt_rand (min, max) {
const argc = arguments.length
if (argc === 0) {
min = 0
max = 2147483647
} else if (argc === 1) {
throw new Error('Warning: mt_rand() expects exactly 2 parameters, 1 given')
} else {
min = parseInt(min, 10)
max = parseInt(max, 10)
}
return Math.floor(Math.random() * (max - min + 1)) + min
}
aX = module(10,49);
bX = module(10,49);
cX = aX + bX;
document.getElementById("aX").innerHTML = aX;
document.getElementById("bX").innerHTML = bX;
document.getElementById("cX").innerHTML = cX;
aXX = module(100,499);
bXX = module(100,499);
cXX = aXX + bXX;
document.getElementById("aXX").innerHTML = aXX;
document.getElementById("bXX").innerHTML = bXX;
document.getElementById("cXX").innerHTML = cXX;
aXXX = module(1000,4999);
bXXX = module(1000,4999);
cXXX = aXXX + bXXX;
document.getElementById("aXXX").innerHTML = aXXX;
document.getElementById("bXXX").innerHTML = bXXX;
document.getElementById("cXXX").innerHTML = cXXX;
</script>
<!--
<footer>
<div class="container">
<p class="float-right"><a href="#"></a></p>
<p>© 2022 , <a href="https://github.com/Yaro2709">github</a></p>
</div>
</footer>
-->