@tushar-br/desktop 1.0.245 → 1.0.246
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @tushar-br/desktop might be problematic. Click here for more details.
- package/package.json +1 -1
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614493749_ch--2.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614493945_ch--3.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614494131_ch--4.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614494252_ch--5.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614494397_ch--1.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614502261_python_CO_Wise_Assignments.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614502630_python_manual.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614525408_Prectical_3_python.pdf +1974 -3
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614525554_prectical_4_quiz.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614525699_prectical_5_quiz_python.pdf +2776 -6
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614525889_prectical_6_quiz_python.pdf +2915 -3
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526007_prectical_7_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526105_prectical_8_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526215_prectical_9_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526306_prectical_10_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526392_prectical_11_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526449_prectical_12_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526551_prectical_13_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526635_prectical_14_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526721_prectical_16_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526809_prectical_17_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614526919_prectical_18_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614527016_prectical_19_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614527097_prectical_20_python_quiz.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614527184_prectical_21_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614527305_prectical_22_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614527491_prectical_23_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614527617_prectical_24_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614527762_prectical_25_quiz_python.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614527911_ch1-Quiz.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614607798_Prectical-1.html +57 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608182_Prectical-2.html +18 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608243_Prectical-3.html +20 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608522_Prectical-4.html +43 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608678_Prectical-5.html +25 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608736_PRectical-6.html +25 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608792_Prectical-7.html +29 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608851_Prectical-8.html +33 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608903_Prectical-9.html +101 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614608970_prectical-10.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609037_Prectical-11.html +74 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609097_Prectical-12.html +41 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609159_Prectical-13.html +79 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609237_Prectical-14.html +48 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609310_Prectical-15.html +41 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609381_Prectical-16.html +41 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609491_Prectical-17.html +40 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609562_Prectical-18.html +27 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609643_Prectical-19.html +86 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609717_Prectical-20.html +75 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609825_Prectical-21.html +91 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614636907__--Practical_No.5_Use_sorted__order.txt +25 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614637017__--Practical_No.6_Use_unsorted__uno.txt +25 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614637136__--Practical_No.7_Use_definition__d.txt +29 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614637260__--Practical_No.8_Use_semantic_tags.txt +33 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614637365__--Practical_No.9--.txt +101 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614637486__--Practical_No.11-htmlUse_inline__inte.txt +74 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614637595__--Practical_No.12--.txt +41 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614637686__--Practical_No.13--.txt +79 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614637786__--Practical_No.14-_Use_JavaScript_.txt +48 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638006__--Practical_No.15_To_use_JavaScrip.txt +41 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638179__--Practical_No.17_To_use_JavaScrip.txt +40 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638335__--Practical_No.18_To_use_JavaScrip.txt +27 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638470__--Practical_No.19_Use_JavaScript_u.txt +86 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638587__--Practical_No.20_Use_JavaScript_t.txt +75 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638694__--Practical_No.21_Use_JavaScript_t.txt +91 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638787_Practical_No.11-css.txt +8 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638883_Practical_No.12-css.txt +40 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614638972_prectical-16html.txt +41 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614639072__--_Practical_No.1_Use_HTML_text_fo.txt +57 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614639214__--_Practical_No.3_Use_image_tags_t.txt +20 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614639321__--Practical_No.2_Use_hyper_link_ta.txt +18 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614639410__--Practical_No.4_Use_HTML_table_ta.txt +43 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614653879_HTML-_Learn.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615138710_Lab_Manual_4321603.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615168151_maths_sem_2_mid_1___CWT.pdf +1616 -5
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615168331_Physics_sem_2_mid_1___CWT.pdf +1541 -3
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615168504_python_sem_2_mid_1___CWT.pdf +3073 -4
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615168622_E.S_sem_2_mid_1___CWT.pdf +1690 -7
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615178590_e.s._sem_-2___mid-2_-_CWT.pdf +2261 -7
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615178810_maths_mid-2__IT_sem-2_-CWT.pdf +1713 -3
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615179004_phisics_sem-2__mid_-2_-CWT.pdf +2184 -4
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615179183_python_sem-2__mid-2_-CWT.pdf +2337 -4
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615208898_APP_assignment_CO_Wise.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615209239_LABMANUAL.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615252109_prectical13new.html +165 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615252617_prectical14.html +173 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615252771_prectical15.html +172 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615252880_prectical16.html +167 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615253003_prectical17.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615253153_prectical18.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615253301_prectical19.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615253440_prectical20.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615253559_prectical21.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615253655_prectical22.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615253773_prectical23.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615253961_prectical24.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615254081_prectical25.html +161 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615254185_prectical1.html +182 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615254292_prectical2.html +168 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615254429_prectical3.html +163 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615254659_prectical4.html +165 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615254962_prectical5.html +237 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615255210_prectical6.html +176 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615255422_prectical7.html +179 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615255585_prectical8.html +176 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615255789_prectical9.html +170 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615255993_prectical10.html +190 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615256276_prectical11.html +188 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615256486_prectical12.html +167 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615272643_pre12-2.png +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615272747_pre12-3.png +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615272874_pre13.png +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615273030_pre12.png +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771615434649_Brochure_IIT_Bombay.pdf +0 -0
- package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614505386_Python_diplomaitmorbi.netlify.app.pdf.ts_part_1 +0 -0
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609310_Prectical-15.html
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!--Practical No.15: To use JavaScript to check whether given character is vowel or consonant using switch case.-->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!--CODE-->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<html>
|
|
9
|
+
|
|
10
|
+
<head>
|
|
11
|
+
<title>
|
|
12
|
+
</title>
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
<script type="text/javascript">
|
|
17
|
+
function Equation() {
|
|
18
|
+
let ch = document.getElementById("input char").value;
|
|
19
|
+
|
|
20
|
+
if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
|
|
21
|
+
document.getElementById("Number").innerHTML = ("<br>" + ch + "</br>" + "is a vowel");
|
|
22
|
+
|
|
23
|
+
else if (ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U')
|
|
24
|
+
document.getElementById("Number").innerHTML = ("<br>" + ch + "</br>" + "is a vowel");
|
|
25
|
+
|
|
26
|
+
else
|
|
27
|
+
document.getElementById("Number").innerHTML = ("<br>" + ch + "</br>" + "is a consonant");
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<form>
|
|
32
|
+
<label for="input char"><b>Input Char </b></label>
|
|
33
|
+
<input type="text" name="input char" id="Input char">
|
|
34
|
+
<br>
|
|
35
|
+
<input type="button" value="click here" onclick="Equation()">
|
|
36
|
+
</form>
|
|
37
|
+
<div class="number" id="number"></div>
|
|
38
|
+
<br>
|
|
39
|
+
</body>
|
|
40
|
+
|
|
41
|
+
</html>
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609381_Prectical-16.html
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<title>JavaScript to print Even Numbers within a Range!</title>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
function printEvenNums() {
|
|
9
|
+
|
|
10
|
+
//get the start and end range from user
|
|
11
|
+
|
|
12
|
+
let start = parseInt(document.getElementById("start").value);
|
|
13
|
+
let end = parseInt(document.getElementById("end").value);
|
|
14
|
+
let eventums = "<br>Even Numbers:<br>";
|
|
15
|
+
|
|
16
|
+
for (i = start; i <= end; i++) {
|
|
17
|
+
// let's divide the value by 2
|
|
18
|
+
// if the reminder is zero then it's an Even number }
|
|
19
|
+
if (i % 2 == 0) {
|
|
20
|
+
eventiums += i + "<br>";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//print the values
|
|
24
|
+
document.getElementById("result").innerHTML = eventums;
|
|
25
|
+
}
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
</head>
|
|
29
|
+
|
|
30
|
+
<h3>JavaScript to print Even Numbers within a Rangel</h3>
|
|
31
|
+
|
|
32
|
+
<body>
|
|
33
|
+
|
|
34
|
+
Start: <input type="number" id="start" /><br> End: <input type="number" id="end" /><br>
|
|
35
|
+
<input type="button" onclick="printEvenNums()" value="Print Even Numbers" />
|
|
36
|
+
|
|
37
|
+
<div id="result"></div>
|
|
38
|
+
|
|
39
|
+
</body>
|
|
40
|
+
|
|
41
|
+
</html>
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609491_Prectical-17.html
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!--Practical No.17: To use JavaScript to calculate power of given number.-->
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Practical No.17</title>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
function calcpower() {
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
let b = document.getElementById("base").value;
|
|
13
|
+
let e = document.getElementById("exp").value
|
|
14
|
+
let res;
|
|
15
|
+
res = powerofnumber(b, e)
|
|
16
|
+
document.getElementById("res").innerHTML = res;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function powerofnumber(b, e) {
|
|
20
|
+
|
|
21
|
+
let i, pow = 1;
|
|
22
|
+
|
|
23
|
+
for (i = 0; i < e; i++) {
|
|
24
|
+
|
|
25
|
+
pow = pow * b;
|
|
26
|
+
}
|
|
27
|
+
return pow;
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
</head>
|
|
31
|
+
|
|
32
|
+
<body>
|
|
33
|
+
|
|
34
|
+
<h2>Java script to find power of a number without using pow()</h2>
|
|
35
|
+
<input type="number" id="base" min="1">
|
|
36
|
+
<input type="number" id="exp" min="1">
|
|
37
|
+
<input type="submit" onclick="calcpower()" value="submit"> result: <span id="res"></span>
|
|
38
|
+
</body>
|
|
39
|
+
|
|
40
|
+
</html>
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609562_Prectical-18.html
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!--Practical No.18: To use JavaScript to print multiplication table of given number.-->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!--CODE-->
|
|
6
|
+
|
|
7
|
+
<html>
|
|
8
|
+
|
|
9
|
+
<head>
|
|
10
|
+
<title>Practical No.18 -SWD
|
|
11
|
+
</title>
|
|
12
|
+
</head>
|
|
13
|
+
|
|
14
|
+
<body>
|
|
15
|
+
<h1> Table </h1>
|
|
16
|
+
<center>
|
|
17
|
+
<script>
|
|
18
|
+
let a = prompt("enter the number to print table");
|
|
19
|
+
const num = parseInt(a);
|
|
20
|
+
|
|
21
|
+
for (i = 1; i <= 10; i++)
|
|
22
|
+
document.write("<br>" + num + "*" + i + "=" + (i * num));
|
|
23
|
+
</script>
|
|
24
|
+
<center>
|
|
25
|
+
</body>
|
|
26
|
+
|
|
27
|
+
</html>
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609643_Prectical-19.html
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<!--Practical No.19: Use JavaScript user defined functions to perform the following operations: -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
<!--Code-->
|
|
5
|
+
|
|
6
|
+
<!--a. to calculate sum of 1 to n-->
|
|
7
|
+
|
|
8
|
+
<!DOCTYPE html>
|
|
9
|
+
<html>
|
|
10
|
+
|
|
11
|
+
<head>
|
|
12
|
+
<title>Calculate Sum of Numbers</title>
|
|
13
|
+
<script>
|
|
14
|
+
function numberSum(n) {
|
|
15
|
+
if (isNaN(n)) {
|
|
16
|
+
return "Invalid input. Please enter a valid number.";
|
|
17
|
+
}
|
|
18
|
+
var total = 0;
|
|
19
|
+
for (var i = 1; i <= n; i++) {
|
|
20
|
+
total += i;
|
|
21
|
+
}
|
|
22
|
+
return total;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function calculateSum() {
|
|
26
|
+
var n = document.getElementById("number").value;
|
|
27
|
+
var sum = numberSum(n);
|
|
28
|
+
document.getElementById("result").innerHTML = "The sum of numbers from 1 to " + n + " is " + sum;
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
</head>
|
|
32
|
+
|
|
33
|
+
<body>
|
|
34
|
+
<label for="number">Enter a number:</label>
|
|
35
|
+
<input type="text" id="number">
|
|
36
|
+
<button onclick="calculateSum()">Calculate Sum</button>
|
|
37
|
+
<p id="result"></p>
|
|
38
|
+
</body>
|
|
39
|
+
|
|
40
|
+
</html>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
<br>
|
|
45
|
+
<br>
|
|
46
|
+
|
|
47
|
+
<!--B-->
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
<!DOCTYPE html>
|
|
51
|
+
<html>
|
|
52
|
+
|
|
53
|
+
<head>
|
|
54
|
+
<title>Check if a Number is Prime</title>
|
|
55
|
+
<script>
|
|
56
|
+
function isPrime(n) {
|
|
57
|
+
if (isNaN(n)) {
|
|
58
|
+
return "Invalid input. Please enter a valid number.";
|
|
59
|
+
}
|
|
60
|
+
if (n <= 1) {
|
|
61
|
+
return n + " is not a prime number.";
|
|
62
|
+
}
|
|
63
|
+
for (var i = 2; i <= Math.sqrt(n); i++) {
|
|
64
|
+
if (n % i === 0) {
|
|
65
|
+
return n + " is not a prime number.";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return n + " is a prime number.";
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function checkPrime() {
|
|
72
|
+
var n = document.getElementById("number").value;
|
|
73
|
+
var result = isPrime(n);
|
|
74
|
+
document.getElementById("result").innerHTML = result;
|
|
75
|
+
}
|
|
76
|
+
</script>
|
|
77
|
+
</head>
|
|
78
|
+
|
|
79
|
+
<body>
|
|
80
|
+
<label for="number">Enter a number:</label>
|
|
81
|
+
<input type="text" id="number">
|
|
82
|
+
<button onclick="checkPrime()">Check</button>
|
|
83
|
+
<p id="result"></p>
|
|
84
|
+
</body>
|
|
85
|
+
|
|
86
|
+
</html>
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609717_Prectical-20.html
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<!--Practical No.20: Use JavaScript to perform the following operations-->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
<!--CODE-->
|
|
5
|
+
|
|
6
|
+
<!--A-->
|
|
7
|
+
|
|
8
|
+
<html>
|
|
9
|
+
|
|
10
|
+
<head>
|
|
11
|
+
<title>JavaScript to take input of student name and address and display in a dialog box. </title>
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
function printvalue() {
|
|
14
|
+
let name = document.form1.name.value;
|
|
15
|
+
let address = document.form1.address.value;
|
|
16
|
+
alert("Welcome: " + name + "\n" + "Your Address is:" + address);
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<form name="form1">
|
|
21
|
+
Enter Name:<input type="text" name="name" /> Enter Address:<input type="textarea" name="address" />
|
|
22
|
+
<input type="button" onclick="printvalue()" value="print name" />
|
|
23
|
+
</form>
|
|
24
|
+
</body>
|
|
25
|
+
|
|
26
|
+
</html>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<!--B-->
|
|
32
|
+
|
|
33
|
+
<html>
|
|
34
|
+
|
|
35
|
+
<head>
|
|
36
|
+
<title>JavaScript to change background color of webpage as selected by user from a list of colors given in combo box.</title>
|
|
37
|
+
</head>
|
|
38
|
+
|
|
39
|
+
<body>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<form>
|
|
43
|
+
Select your favorite color:
|
|
44
|
+
<select id="mySelect">
|
|
45
|
+
<option value="darkcyan">DarkCyan</option>
|
|
46
|
+
<option value="lightpink">LightPink</option>
|
|
47
|
+
<option value="royalblue">RoyalBlue</option>
|
|
48
|
+
|
|
49
|
+
</select>
|
|
50
|
+
</form>
|
|
51
|
+
|
|
52
|
+
<p>Click the button to return the value of the selected color.</p>
|
|
53
|
+
|
|
54
|
+
<button type="button" onclick="myFunction()">Try it</button>
|
|
55
|
+
|
|
56
|
+
<p id="demo"></p>
|
|
57
|
+
|
|
58
|
+
<script>
|
|
59
|
+
function myFunction() {
|
|
60
|
+
let x = document.getElementById("mySelect").value;
|
|
61
|
+
// document.getElementById("demo").innerHTML = x;
|
|
62
|
+
if (x == "darkcyan") {
|
|
63
|
+
document.getElementsByTagName("body")[0].style.backgroundColor = "DarkCyan";
|
|
64
|
+
}
|
|
65
|
+
if (x == "lightpink") {
|
|
66
|
+
document.getElementsByTagName("body")[0].style.backgroundColor = "LightPink";
|
|
67
|
+
}
|
|
68
|
+
if (x == "royalblue") {
|
|
69
|
+
document.getElementsByTagName("body")[0].style.backgroundColor = "RoyalBlue";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
</script>
|
|
73
|
+
</body>
|
|
74
|
+
|
|
75
|
+
</html>
|
package/staging_area/desktop/resume web/dist/assets/explorer/thispc/1771614609825_Prectical-21.html
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<!--Practical No.21: Use JavaScript to perform the following operations: -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!--CODE-->
|
|
6
|
+
|
|
7
|
+
<!--A-->
|
|
8
|
+
<html>
|
|
9
|
+
|
|
10
|
+
<head>
|
|
11
|
+
<title>JavaScript to calculate the factorial of a given number entered into a textbox. Display the result in another textbox.</title>
|
|
12
|
+
</head>
|
|
13
|
+
|
|
14
|
+
<body>
|
|
15
|
+
|
|
16
|
+
Enter a number: <input type="text" id="num">
|
|
17
|
+
<br><br>
|
|
18
|
+
<button onclick="fact()"> Factorial </button>
|
|
19
|
+
<input type="text" id="answer">
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
function fact() {
|
|
24
|
+
|
|
25
|
+
let i, no, fact;
|
|
26
|
+
fact = 1;
|
|
27
|
+
no = Number(document.getElementById("num").value);
|
|
28
|
+
for (i = 1; i <= no; i++) {
|
|
29
|
+
fact = fact * i;
|
|
30
|
+
}
|
|
31
|
+
document.getElementById("answer").value = fact;
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
</body>
|
|
35
|
+
|
|
36
|
+
</html>
|
|
37
|
+
|
|
38
|
+
<br>
|
|
39
|
+
<br>
|
|
40
|
+
|
|
41
|
+
<br>
|
|
42
|
+
<br>
|
|
43
|
+
|
|
44
|
+
<br>
|
|
45
|
+
<br>
|
|
46
|
+
<br>
|
|
47
|
+
<br>
|
|
48
|
+
|
|
49
|
+
<!--B-->
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
<html>
|
|
53
|
+
|
|
54
|
+
<head>
|
|
55
|
+
<title>JavaScript to perform arithmetic operations on two numbers entered into textboxes. Use Radio buttons to select arithmetic operations</title>
|
|
56
|
+
|
|
57
|
+
<script>
|
|
58
|
+
function calc() {
|
|
59
|
+
let n1 = parseFloat(document.getElementById('n1').value);
|
|
60
|
+
let n2 = parseFloat(document.getElementById('n2').value);
|
|
61
|
+
let oper = document.getElementById('operators').value;
|
|
62
|
+
if (oper === '+') {
|
|
63
|
+
document.getElementById('result').value = n1 + n2;
|
|
64
|
+
}
|
|
65
|
+
if (oper === '-') {
|
|
66
|
+
document.getElementById('result').value = n1 - n2;
|
|
67
|
+
}
|
|
68
|
+
if (oper === '/') {
|
|
69
|
+
document.getElementById('result').value = n1 / n2;
|
|
70
|
+
}
|
|
71
|
+
if (oper === '*') {
|
|
72
|
+
document.getElementById('result').value = n1 * n2;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</script>
|
|
76
|
+
</head>
|
|
77
|
+
|
|
78
|
+
<body>
|
|
79
|
+
<input type="text" id="n1" /><br/><br/>
|
|
80
|
+
<input type="text" id="n2" /><br/><br/>
|
|
81
|
+
<select id="operators">
|
|
82
|
+
<option value="+">+</option>
|
|
83
|
+
<option value="-">-</option>
|
|
84
|
+
<option value="/">/</option>
|
|
85
|
+
<option value="*">*</option>
|
|
86
|
+
</select>
|
|
87
|
+
<button onclick="calc();">=</button>
|
|
88
|
+
<input type="text" id="result" />
|
|
89
|
+
</body>
|
|
90
|
+
|
|
91
|
+
</html>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!--Practical No.5: Use sorted (ordered) list to create web page as per given sample page.-->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
<!--CODE-->
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<html>
|
|
8
|
+
|
|
9
|
+
<head>
|
|
10
|
+
<title>Practical No.5 -SWD
|
|
11
|
+
</title>
|
|
12
|
+
</head>
|
|
13
|
+
|
|
14
|
+
<body>
|
|
15
|
+
<h1>An ordered HTML list </h1>
|
|
16
|
+
<br>
|
|
17
|
+
<ol>
|
|
18
|
+
<li>Python</li>
|
|
19
|
+
<li>IITS</li>
|
|
20
|
+
<li>ENglish</li>
|
|
21
|
+
<li>Math's </li>
|
|
22
|
+
<li>SWD </li>
|
|
23
|
+
</body>
|
|
24
|
+
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!--Practical No.6: Use unsorted (unordered) list to create web page as per given sample page.-->
|
|
2
|
+
|
|
3
|
+
<!--CODE-->
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
|
|
8
|
+
<head>
|
|
9
|
+
<title>Practical No.6 -SWD
|
|
10
|
+
</title>
|
|
11
|
+
</head>
|
|
12
|
+
|
|
13
|
+
<body>
|
|
14
|
+
<h1> An unordered HTML list </h1>
|
|
15
|
+
<br>
|
|
16
|
+
<ul>
|
|
17
|
+
<li>Python </li>
|
|
18
|
+
<li>IITS</li>
|
|
19
|
+
<li>Math's</li>
|
|
20
|
+
<li>SWD</li>
|
|
21
|
+
<li>English</li>
|
|
22
|
+
</ul>
|
|
23
|
+
</body>
|
|
24
|
+
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!--Practical No.7: Use definition (description) list to create web page as per given sample page-->
|
|
2
|
+
|
|
3
|
+
<!--CODE-->
|
|
4
|
+
|
|
5
|
+
<html>
|
|
6
|
+
|
|
7
|
+
<head>
|
|
8
|
+
<tittle>Practical No.7 - SWD
|
|
9
|
+
</tittle>
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<p>
|
|
13
|
+
<dl>
|
|
14
|
+
<dt>html </dt>
|
|
15
|
+
|
|
16
|
+
<dd>is a markup language</dd>
|
|
17
|
+
|
|
18
|
+
<dt>java</dt>
|
|
19
|
+
|
|
20
|
+
<dd>is a programing language and platform</dd>
|
|
21
|
+
<dt>javascript </dt>
|
|
22
|
+
<dd> is a scripting language</dd>
|
|
23
|
+
<dt> SQL </dt>
|
|
24
|
+
<dd> is a query language</dd>
|
|
25
|
+
</dl>
|
|
26
|
+
</p>
|
|
27
|
+
</body>
|
|
28
|
+
|
|
29
|
+
</html>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!--Practical No.8: Use semantic tags to organize web page contents.-->
|
|
2
|
+
|
|
3
|
+
<!--CODE-->
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
|
|
8
|
+
<head>
|
|
9
|
+
<title>
|
|
10
|
+
</title>
|
|
11
|
+
</head>
|
|
12
|
+
|
|
13
|
+
<body>
|
|
14
|
+
<header>
|
|
15
|
+
<h1>Information of google</h1>
|
|
16
|
+
<p>google llc is An American company </p>
|
|
17
|
+
</header>
|
|
18
|
+
<p> google llc is An American company</p>
|
|
19
|
+
<nav>
|
|
20
|
+
<a href="https://www.wikipedia.org.mojla">
|
|
21
|
+
</a>
|
|
22
|
+
</nav>
|
|
23
|
+
<section>
|
|
24
|
+
<h1> Information of Digital gujrat Digital gujrat refers to </h1>
|
|
25
|
+
<p>the service beg provided though App </p>
|
|
26
|
+
</section>
|
|
27
|
+
<article>
|
|
28
|
+
<h2>Wikipidia </h2>
|
|
29
|
+
<p> Wikipidia is a free online encgelopedia, created and founded</p>
|
|
30
|
+
</article>
|
|
31
|
+
</body>
|
|
32
|
+
|
|
33
|
+
</html>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<!--Practical No.9:-->
|
|
2
|
+
|
|
3
|
+
<!-- a. Create a student registration webpage using different HTML form elements. -->
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<!--CODE-->
|
|
8
|
+
|
|
9
|
+
<html>
|
|
10
|
+
|
|
11
|
+
<head>
|
|
12
|
+
<title> Practical No.9 - A--SWD
|
|
13
|
+
</title>
|
|
14
|
+
</head>
|
|
15
|
+
|
|
16
|
+
<body>
|
|
17
|
+
<CENTER>
|
|
18
|
+
<TT>
|
|
19
|
+
<br>
|
|
20
|
+
<button><h1>Ragisteration for student</h1></button>
|
|
21
|
+
</TT>
|
|
22
|
+
<CENTER>
|
|
23
|
+
|
|
24
|
+
<BR>
|
|
25
|
+
<BR>
|
|
26
|
+
<form action="login2.html">
|
|
27
|
+
<fieldset>
|
|
28
|
+
<span>♟</span> <label> USER NAME</label>
|
|
29
|
+
<input list="USER NAME">
|
|
30
|
+
<datalist id="USER NAME">
|
|
31
|
+
<option value="RATHOD TUSHAR">
|
|
32
|
+
<option value="RATHOD DRAVID">
|
|
33
|
+
<option value="RATHOD PUNIT"></option>
|
|
34
|
+
</datalist>
|
|
35
|
+
<BR>
|
|
36
|
+
<BR>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<span>✎</span><label> PASSWORD </label>
|
|
40
|
+
<input type="password" name="password">
|
|
41
|
+
<br>
|
|
42
|
+
<br>
|
|
43
|
+
|
|
44
|
+
<input type="radio" id="html" name="fav_language" value="HTML"> <label for="html">male</label><br> <input type="radio" id="css" name="fav_language" value="CSS"> <label for="css">female</label><br>
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
<br>
|
|
48
|
+
<br>
|
|
49
|
+
<input type="date" name="date of birth" size="15" maxlength="30">
|
|
50
|
+
<br>
|
|
51
|
+
<br>
|
|
52
|
+
|
|
53
|
+
<tt>STD</tt>
|
|
54
|
+
<oninput="x.vlue=parsent(a.value)+parsent(b.value)">
|
|
55
|
+
1
|
|
56
|
+
<input type="range" id="a" name="a" value="type here"> 10 =
|
|
57
|
+
<input type="number" id="b" name="b" value="type here">
|
|
58
|
+
|
|
59
|
+
<output name="x" for "a b"></output>
|
|
60
|
+
<center>
|
|
61
|
+
<u> <b> <h3>OR</h3></b></u>
|
|
62
|
+
</center>
|
|
63
|
+
<label for="option">LOGIN with</label>
|
|
64
|
+
<select id="cart" name="cart">
|
|
65
|
+
<option value="google">google</option>
|
|
66
|
+
<option value="facebook">facebook </option>
|
|
67
|
+
<option value="tweeter">tweeter</option>
|
|
68
|
+
</select>
|
|
69
|
+
<a href="forgot.html">forgoy password</a>
|
|
70
|
+
<br>
|
|
71
|
+
<br> don't have an account? <a href="login1.html">ragister</a>
|
|
72
|
+
<br>
|
|
73
|
+
<br>
|
|
74
|
+
<input type="submit" value="login"> or
|
|
75
|
+
<style>
|
|
76
|
+
a:link,
|
|
77
|
+
a:visited {
|
|
78
|
+
background-color: #f44336;
|
|
79
|
+
color: white;
|
|
80
|
+
padding: 15px 25px;
|
|
81
|
+
text-align: center;
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
display: inline-block;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
a:hover,
|
|
87
|
+
a:active {
|
|
88
|
+
background-color: rgb(38, 32, 100);
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
91
|
+
<button type="button" onclick="alert('👍👍👍thank you ')"> help! </button>
|
|
92
|
+
|
|
93
|
+
<br>
|
|
94
|
+
<br>
|
|
95
|
+
<br>
|
|
96
|
+
</oninput>
|
|
97
|
+
</fieldset>
|
|
98
|
+
</form>
|
|
99
|
+
</body>
|
|
100
|
+
|
|
101
|
+
</html>
|