Skip to content

Commit

Permalink
Submit only over HTTPS, show only HTML/CSS panels on codepen, include…
Browse files Browse the repository at this point in the history
… 'snappysnippet' tag on codepen
  • Loading branch information
kdzwinel committed Sep 8, 2017
1 parent 37c1064 commit ee14a20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion js/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@

dataInput.val(JSON.stringify({
html: htmlTextarea.val(),
css: cssTextarea.val()
css: cssTextarea.val(),
editors: '110',
tags: ['SnappySnippet']
}));
});

Expand Down
6 changes: 3 additions & 3 deletions panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,20 @@ <h4 class="panel-title">

<div class="row" id='export-buttons-row'>
<div class="col-xs-4">
<form action="http://codepen.io/pen/define" method="POST" target="_blank" id='codepen-form'>
<form action="https://codepen.io/pen/define" method="POST" target="_blank" id='codepen-form'>
<input type="hidden" name="data" value=''/>
<button type='submit' class='btn btn-primary'><span class="fui-mail"></span> Send to CodePen</button>
</form>
</div>
<div class="col-xs-4">
<form action="http://jsbin.com/?html,css,output" method="POST" target="_blank" id='jsbin-form'>
<form action="https://jsbin.com/?html,css,output" method="POST" target="_blank" id='jsbin-form'>
<input type="hidden" name="html" value=''/>
<input type="hidden" name="css" value=''/>
<button type='submit' class='btn btn-primary'><span class="fui-mail"></span> Send to JS Bin</button>
</form>
</div>
<div class="col-xs-4">
<form action="http://jsfiddle.net/api/post/library/pure/" method="POST" target="_blank" id='jsfiddle-form'>
<form action="https://jsfiddle.net/api/post/library/pure/" method="POST" target="_blank" id='jsfiddle-form'>
<input type="hidden" name="html" value=''/>
<input type="hidden" name="css" value=''/>
<button type='submit' class='btn btn-primary'><span class="fui-mail"></span> Send to jsFiddle</button>
Expand Down

0 comments on commit ee14a20

Please sign in to comment.