remove old/unused assertions
parent
b658bda421
commit
a6dbfcecf3
@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<script data-main="main" src="/bower_components/requirejs/require.js"></script>
|
||||
<style>
|
||||
media {
|
||||
border: 1px solid black;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
display: block;
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<media> my media thing </media>
|
||||
<br />
|
||||
<a href="https://www.w3schools.com/html/html5_new_elements.asp">valid elements</a>
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
define(['jquery'], function ($) {
|
||||
$('media').each(function () {
|
||||
window.alert("media tag selection works!");
|
||||
});
|
||||
});
|
@ -1,19 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||
<script data-main="main" src="/bower_components/requirejs/require.js"></script>
|
||||
<style>
|
||||
html{
|
||||
width: 100%;
|
||||
}
|
||||
body {
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
}
|
||||
.wrap {
|
||||
white-space: normal;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
@ -1,24 +0,0 @@
|
||||
define([
|
||||
'jquery',
|
||||
'/bower_components/hyperjson/hyperjson.js'
|
||||
], function ($, Hyperjson) {
|
||||
var shjson = '["BODY",{"class":"cke_editable cke_editable_themed cke_contents_ltr cke_show_borders","spellcheck":"false"},[["P",{},["This is ",["STRONG",{},["CryptPad"]],", the zero knowledge realtime collaborative editor.",["BR",{},[]],"What you type here is encrypted so only people who have the link can access it.",["BR",{},[]],"Even the server cannot see what you type."]],["P",{},[["SMALL",{},[["I",{},["What you see here, what you hear here, when you leave here, let it stay here"]]]],["BR",{"type":"_moz"},[]]]]]]';
|
||||
|
||||
var hjson = JSON.parse(shjson);
|
||||
|
||||
var pretty = Hyperjson.toString(hjson);
|
||||
|
||||
// set the body html to the rendered hyperjson
|
||||
$('body')[0].outerHTML = pretty;
|
||||
|
||||
$('body')
|
||||
// append the stringified-hyperjson source for reference
|
||||
.append('<hr>').append($('<pre>', {
|
||||
'class': 'wrap',
|
||||
}).text(shjson))
|
||||
// append the pretty-printed html source for reference
|
||||
.append('<hr>').append($('<pre>').text(pretty));
|
||||
|
||||
|
||||
// TODO write some tests to confirm whether the pretty printer is correct
|
||||
});
|
Loading…
Reference in New Issue