Skip to content

Commit ee14a20

Browse files
committed
Submit only over HTTPS, show only HTML/CSS panels on codepen, include 'snappysnippet' tag on codepen
1 parent 37c1064 commit ee14a20

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

js/panel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939

4040
dataInput.val(JSON.stringify({
4141
html: htmlTextarea.val(),
42-
css: cssTextarea.val()
42+
css: cssTextarea.val(),
43+
editors: '110',
44+
tags: ['SnappySnippet']
4345
}));
4446
});
4547

panel.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,20 @@ <h4 class="panel-title">
104104

105105
<div class="row" id='export-buttons-row'>
106106
<div class="col-xs-4">
107-
<form action="http://codepen.io/pen/define" method="POST" target="_blank" id='codepen-form'>
107+
<form action="https://codepen.io/pen/define" method="POST" target="_blank" id='codepen-form'>
108108
<input type="hidden" name="data" value=''/>
109109
<button type='submit' class='btn btn-primary'><span class="fui-mail"></span> Send to CodePen</button>
110110
</form>
111111
</div>
112112
<div class="col-xs-4">
113-
<form action="http://jsbin.com/?html,css,output" method="POST" target="_blank" id='jsbin-form'>
113+
<form action="https://jsbin.com/?html,css,output" method="POST" target="_blank" id='jsbin-form'>
114114
<input type="hidden" name="html" value=''/>
115115
<input type="hidden" name="css" value=''/>
116116
<button type='submit' class='btn btn-primary'><span class="fui-mail"></span> Send to JS Bin</button>
117117
</form>
118118
</div>
119119
<div class="col-xs-4">
120-
<form action="http://jsfiddle.net/api/post/library/pure/" method="POST" target="_blank" id='jsfiddle-form'>
120+
<form action="https://jsfiddle.net/api/post/library/pure/" method="POST" target="_blank" id='jsfiddle-form'>
121121
<input type="hidden" name="html" value=''/>
122122
<input type="hidden" name="css" value=''/>
123123
<button type='submit' class='btn btn-primary'><span class="fui-mail"></span> Send to jsFiddle</button>

0 commit comments

Comments
 (0)