-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.html
142 lines (126 loc) · 4.7 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title><paper-code-mirror> demo page</title>
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../paper-styles/typography.html">
<link rel="import" href="../paper-styles/color.html">
<link rel="import" href="../paper-material/paper-material.html">
<link rel="import" href="paper-code-mirror.html">
</head>
<body>
<style is="custom-style">
.paper-font-display1 {
font-weight: 300 !important;
color: teal;
margin: 20px;
@apply(--paper-font-display1);
}
.paper-font-headline {
@apply(--paper-font-headline);
}
.paper-font-title {
@apply(--paper-font-title);
}
.paper-font-subhead {
@apply(--paper-font-subhead);
}
.paper-font-button {
@apply(--paper-font-button);
color: teal;
}
paper-material {
min-height: 300px;
position: relative;
padding: 10px;
margin: 10px 0;
}
paper-video.custom {
--paper-video-controls-background: var(--paper-blue-500);
--paper-video-controls-color: white;
--paper-video-slider-color: var(--paper-blue-700);
}
paper-fab-menu[position="vertical"] {
position: absolute;
right: 20px;
bottom: 20px;
}
paper-fab-menu[position="horizontal"] {
position: absolute;
right: 185px;
bottom: 20px;
}
.code-area pre {
position: relative;
left: 135px;
text-align: left;
}
</style>
<div class="paper-font-display1"><paper-code-mirror></div>
<paper-material elevation="1">
<div class="paper-font-button">HTML Mode</div>
<div class="code-area">
<pre>
<paper-code-mirror title="HTML">
<template>
<div class="container">
<div class="header">
<a href="http://google.com" target="_blank">Hello</a>
</div>
</div>
</template>
</paper-code-mirror>
</pre>
</div>
<paper-code-mirror title="HTML">
<template>
<div class="container">
<div class="header">
<a href="http://google.com" target="_blank">Hello</a>
</div>
</div>
</template>
</paper-code-mirror>
</paper-material>
<paper-material elevation="1">
<div class="paper-font-button">JavaScript Mode, Night Theme, With Line Numbers</div>
<div class="code-area">
<pre>
<paper-code-mirror theme="night" line-numbers title="JavaScript" mode="javascript">
<template>
var length = 16; // Number
var lastName = "Johnson"; // String
var cars = ["Saab", "Volvo", "BMW"]; // Array
var x = {firstName:"John", lastName:"Doe"}; // Object
</template>
</paper-code-mirror>
</pre>
</div>
<paper-code-mirror line-numbers theme="night" title="JavaScript" mode="javascript">
<template>
var length = 16; // Number
var lastName = "Johnson"; // String
var cars = ["Saab", "Volvo", "BMW"]; // Array
var x = { firstName: "John", lastName: "Doe"}; // Object
</template>
</paper-code-mirror>
</paper-material>
<paper-material elevation="1">
<div class="paper-font-button">SQL Mode, Midnight Theme, With Line Numbers</div>
<div class="code-area">
<pre>
<paper-code-mirror line-numbers theme="midnight" title="SQL" mode="sql">
<template>
SELECT 'column_name','column_name' FROM 'table_name';
</template>
</paper-code-mirror>
</pre>
</div>
<paper-code-mirror line-numbers theme="midnight" title="SQL" mode="sql">
<template>
SELECT 'column_name','column_name' FROM 'table_name';
</template>
</paper-code-mirror>
</paper-material>
</body>
</html>