View difference between Paste ID: zh0Sp55f and CQDUdfLe
SHOW: | | - or go back to the newest paste.
1
<!DOCTYPE html> 
2
<html>
3
    <header>
4
        <title>CSTI Demo - Client-Side Template Injection</title>
5
        
6
        <!-- Adding necessary files -->
7
        <meta charset="UTF-8">
8
        <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
9
        <link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet">
10
        <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet">
11
        <link rel="preconnect" href="https://fonts.gstatic.com">
12
        <link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&display=swap" rel="stylesheet">
13
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
14
 
15
        <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
16
        <script src="https://cdn.jsdelivr.net/npm/vue@2"></script> 
17
        
18
        <!-- Styles to make the page look nicer -->   
19
        <style>
20
            body {
21
                background-image: linear-gradient(to right,#0072ff, #00c6ff);
22
                font-family: 'Lato',helvetica;
23
                margin: auto;
24
            }
25
            #app { margin-top: 50px; }
26
            .center {
27
                margin: auto;
28
                width: 600px;
29
            }
30
            .resumeSection{
31
                padding: 25px;
32
                margin-bottom: 25px;
33
                background: white;
34
                border-radius: 15px;
35
            }
36
            .caption{ color: gray; }
37
        </style>
38
    </header>
39
    <body>
40
        <div id="app" class="center" data-app >
41
            <v-app style="background-color: transparent;">
42
                <v-card class="resumeSection">
43
                    <h1 class="text-center">Welcome, friend!</h1>  
44
                    <br>
45
  
46
                    <v-text-field
47
                        label="What are you called?"
48
                        placeholder="Enter your nickname here..."
49
                        v-model="name"
50
                    >
51
                    </v-text-field>
52
 
53
                    <h2 class="text-center">So you've come to gain knowledge about SSTI and CSTI? Very well... Sit 
54
                        <i>name</i> with us and listen...</h1>  
55
                    <br>
56
                </v-card>  
57
            </v-app>
58
        </div> 
59
 
60
        <script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js"></script>
61
        <script src="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.js"></script>
62
        <script >
63
            var app = new Vue({
64
            el: '#app',
65
            vuetify: new Vuetify(),
66
            data: {
67
                name: '', // Variable storing the name of our brave one who wants to learn about SSTI
68
            },
69
            watch: {
70
                // Function that displays the change of data in the name variable in the console.
71
                name(newName){ 
72
                    console.log('The entered name is:', newName);
73
                },
74
            },
75
            })
76
        </script>
77
    </body>
78
</html>
79