Skip to content

Commit b095b8e

Browse files
committed
Right colors, fixing small errors in functions
1 parent 7135588 commit b095b8e

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

src/_sass/components/_prisim.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ pre[class*="language-"] {
2323
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
2424
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
2525
text-shadow: none;
26-
background: #b3d4fc;
26+
background: #eceef0;
2727
}
2828

2929
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
3030
code[class*="language-"]::selection, code[class*="language-"] ::selection {
3131
text-shadow: none;
32-
background: #b3d4fc;
32+
background: #eceef0;
3333
}
3434

3535
@media print {
@@ -48,7 +48,7 @@ pre[class*="language-"] {
4848

4949
:not(pre) > code[class*="language-"],
5050
pre[class*="language-"] {
51-
background: #f5f2f0;
51+
background: #eceef0;
5252
}
5353

5454
/* Inline code */
@@ -61,11 +61,11 @@ pre[class*="language-"] {
6161
.token.prolog,
6262
.token.doctype,
6363
.token.cdata {
64-
color: slategray;
64+
color: #474d66;
6565
}
6666

6767
.token.punctuation {
68-
color: #999;
68+
color: #474d66;
6969
}
7070

7171
.namespace {
@@ -79,7 +79,7 @@ pre[class*="language-"] {
7979
.token.constant,
8080
.token.symbol,
8181
.token.deleted {
82-
color: #905;
82+
color: #d52039;
8383
}
8484

8585
.token.selector,
@@ -88,32 +88,32 @@ pre[class*="language-"] {
8888
.token.char,
8989
.token.builtin,
9090
.token.inserted {
91-
color: #690;
91+
color: #6fba97;
9292
}
9393

9494
.token.operator,
9595
.token.entity,
9696
.token.url,
9797
.language-css .token.string,
9898
.style .token.string {
99-
color: #a67f59;
99+
color: #f89c56;
100100
background: hsla(0, 0%, 100%, .5);
101101
}
102102

103103
.token.atrule,
104104
.token.attr-value,
105105
.token.keyword {
106-
color: #07a;
106+
color: #2e98df;
107107
}
108108

109109
.token.function {
110-
color: #DD4A68;
110+
color: #ff678d;
111111
}
112112

113113
.token.regex,
114114
.token.important,
115115
.token.variable {
116-
color: #e90;
116+
color: #f89c56;
117117
}
118118

119119
.token.important,

src/connections/spec/identify.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ Here's a complete example of an `identify` call:
9696
"version": "1.1"
9797
}
9898
```
99+
### Create your own Identify call
100+
101+
Use the following interactive code pen to see what your Identify calls would look like with user-provided information:
99102

100103
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/prism.min.js" integrity="sha512-UOoJElONeUNzQbbKQbjldDf9MwOHqxNz49NNJJ1d90yp+X9edsHyJoAs6O4K19CZGaIdjI5ohK+O2y5lBTW6uQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
101104
<link rel="stylesheet" href="/src/_sass/components/_prisim.scss"/>
@@ -108,8 +111,8 @@ Here's a complete example of an `identify` call:
108111
var street = document.getElementById("street").value;
109112
var city = document.getElementById("city").value;
110113
var state = document.getElementById("state").value;
111-
var postalCode = document.getElementById("postalCode");
112-
var country = document.getElementById("country");
114+
var postcode = document.getElementById("postcode").value;
115+
var country = document.getElementById("country").value;
113116
var output = `{
114117
"anonymousId": "507f191e810c19729de860ea",
115118
"channel": "browser",
@@ -135,7 +138,7 @@ Here's a complete example of an `identify` call:
135138
"street": "${street}",
136139
"city": "${city}",
137140
"state": "${state}",
138-
"postalCode": "${postalCode}",
141+
"postalCode": "${postcode}",
139142
"country": "${country}"
140143
}
141144
},
@@ -160,7 +163,7 @@ Here's a complete example of an `identify` call:
160163

161164
<div class="sample-code-container">
162165
<div class="form">
163-
<h3> Sample Identify </h3>
166+
<h4> Sample Identify </h4>
164167
<p><b>See what your identify call looks like</b></p>
165168
<label for="name">Name:</label>
166169
<input type="text" id="name"><br>
@@ -176,16 +179,16 @@ Here's a complete example of an `identify` call:
176179
<input type="text" id="city"><br>
177180
<label for="state">State:</label>
178181
<input type="text" id="state"><br>
179-
<label for="postalCode">Postal Code:</label>
180-
<input type="text" id="postalCode"><br>
182+
<label for="postcode">Postal Code:</label>
183+
<input type="text" id="postcode"><br>
181184
<label for="country">Country:</label>
182185
<input type="text" id="country"><br>
183186
<input type="submit" id="submit" onclick="showMessage(); showOutput()" value="See a sample identify call">
184187
</div>
185188

186189
<div class="output">
187-
<h3>Sample Identify Call</h3>
188-
<pre class="language-javascript"><code class="language-javascript" id="output_container"></code></pre>
190+
<h4>Sample Identify Call</h4>
191+
<pre><code class="language-javascript" id="output_container"></code></pre>
189192
</div></div>
190193

191194
## Identities

src/connections/spec/track.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ Here's a complete example of a `track` call:
8282
function showMessage(){
8383
var event = document.getElementById("event").value;
8484
var title = document.getElementById("title").value;
85-
var variation = document.getElementById("variation").value;
8685
var output =
8786
`{
8887
"anonymousId": "23adfd82-aa0f-45a7-a756-24f2a7a4c895",
@@ -141,7 +140,7 @@ Here's a complete example of a `track` call:
141140
</div>
142141

143142
<div class="output">
144-
<h3>Sample Screen Call</h3>
143+
<h3>Sample Track Call</h3>
145144
<pre class="language-javascript"><code class="language-javascript" id="output_container">
146145

147146
</code></pre>

0 commit comments

Comments
 (0)