Skip to content

Commit

Permalink
Obfuscate javascript HTML tags
Browse files Browse the repository at this point in the history
  • Loading branch information
qistoph committed Apr 27, 2013
1 parent 0022ef7 commit 70204f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>WiFi QR-code - Javascript</title>

<meta property="og:url" content="http://qistoph.github.io/WiFiQR/" />
<meta property="og:title" content="WiFi QR-code" />
<meta property="og:description" content="Share your WiFi easily with a QR-code" />
<meta property="og:image" content="http://qistoph.github.io/WiFiQR/example.png" />
Expand Down Expand Up @@ -289,7 +290,7 @@
window.printQR = function(targetWin) {
var printWin = window.open('', '_blank', '');

printWin.document.write('<!doctype html/><html><head><title>WiFi: ' + $("#S").val() + '</title></head><body>');
printWin.document.write('<!doc'+'type html/><ht'+'ml><he'+'ad><title>WiFi: ' + $("#S").val() + '</title></he'+'ad><bo'+'dy>');
printWin.document.write('<div id="card">');
printWin.document.write('<div id="cardcontent">');
printWin.document.write('<div id="qrcode"></div>');
Expand All @@ -299,7 +300,7 @@
printWin.document.write('<div id="about">Generate your WiFi QR at<br/>http://qistoph.github.io/WiFiQR</div>');
printWin.document.write('</div>');
printWin.document.write('</div>');
printWin.document.write('</body></html>');
printWin.document.write('</bo'+'dy></ht'+'ml>');

$("style[target='card']").each(function() {
$(printWin.document.head).append($(this).clone())
Expand Down

0 comments on commit 70204f7

Please sign in to comment.