Skip to content

Commit e4018f3

Browse files
author
markzegarelli
committed
Remove form from page call
1 parent 6310cc6 commit e4018f3

File tree

3 files changed

+12
-39
lines changed

3 files changed

+12
-39
lines changed

src/_sass/components/_markdown.scss

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -476,36 +476,5 @@ div.highlighter-rouge {
476476
margin-left: 3px
477477
}
478478

479-
<<<<<<< HEAD
480-
// .sample-code-container {
481-
// display: grid;
482-
// grid-template-columns: 1fr 1fr;
483-
// gap: 10px;
484-
// padding: 5px;
485-
// overflow: scroll;
486-
// }
487-
488-
// .output {
489-
// outline: 1px solid color(gray-600);
490-
// outline-offset: 4px
491-
// }
492-
// .output-code {
493-
// display: block;
494-
// font: 12px color(code-gray) "Droid Sans Mono", "Lucida Console", "Monaco", monospace;
495-
// word-wrap: break-word;
496-
// }
497-
498-
=======
499-
.sample-code-container {
500-
display: grid;
501-
grid-template-columns: 1fr 1fr;
502-
overflow: scroll;
503-
}
504479

505-
.output-code {
506-
display: block;
507-
font: 12px color(code-gray) "Droid Sans Mono", "Lucida Console", "Monaco", monospace;
508-
word-wrap: break-word;
509-
}
510-
>>>>>>> bf5298da8611575cf333db081233a9f508a3d4e2
511480

src/_sass/components/_sample-form.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@
3636
font-size: 12px;
3737
}
3838

39-
input, button {
39+
input {
4040
grid-column: 2 / 3;
4141
}
42+
43+
input[type=submit]{
44+
grid-column: 1 / 3;
45+
}
4246
}
4347

src/connections/spec/page.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ Use the following interactive code pen to see what your Page calls would look li
7777
<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>
7878
<script type="text/javascript">
7979
function showMessage(){
80-
var name = document.getElementById("name").value;
81-
var title = document.getElementById("title").value;
82-
var url = document.getElementById("url").value;
80+
var name = "Page call Spec"
81+
var title = document.title
82+
var url = window.location.href
8383
var output = `{
8484
"anonymousId": "507f191e810c19729de860ea",
8585
"channel": "browser",
@@ -122,15 +122,15 @@ Use the following interactive code pen to see what your Page calls would look li
122122

123123
<div class="sample-code-container">
124124
<div class="form">
125-
<h4> Sample Web Form </h4>
125+
<h4> Make a Page Call </h4>
126126
<div class="sample-form">
127-
<label for="name">Name:</label>
127+
<!-- <label for="name">Name:</label>
128128
<input type="text" class="input" id="name">
129129
<label for="title">Title:</label>
130130
<input type="text" class="input" id="title">
131131
<label for="url">URL:</label>
132-
<input type="text" class="input" id="url">
133-
<input type="submit" class= "button button-hollow" id="submit" onclick="showMessage(); showOutput()" value="See a sample page call">
132+
<input type="text" class="input" id="url"> -->
133+
<input type="submit" class= "button button-hollow" id="submit" onclick="showMessage(); showOutput()" value="See a sample page call" />
134134
</div>
135135
</div>
136136

0 commit comments

Comments
 (0)