Browse Source

remove bootstrap from asciidoctor

master
zeus 4 years ago
parent
commit
eca9ba624a
  1. 2
      dist/index.html
  2. 2
      dist/js/app.4b13ac7c.js
  3. 1
      dist/js/app.4b13ac7c.js.map
  4. 2
      dist/js/app.a7064069.js
  5. 1
      dist/js/app.a7064069.js.map
  6. 80
      src/components/doclive/runLlo.vue

2
dist/index.html

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>bootstrap-vue-example</title><link href="/css/app.4439dee6.css" rel="preload" as="style"><link href="/css/chunk-vendors.0cbe91b8.css" rel="preload" as="style"><link href="/js/app.4b13ac7c.js" rel="preload" as="script"><link href="/js/chunk-vendors.d7ec7d73.js" rel="preload" as="script"><link href="/css/chunk-vendors.0cbe91b8.css" rel="stylesheet"><link href="/css/app.4439dee6.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but bootstrap-vue-example doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.d7ec7d73.js"></script><script src="/js/app.4b13ac7c.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>bootstrap-vue-example</title><link href="/css/app.4439dee6.css" rel="preload" as="style"><link href="/css/chunk-vendors.0cbe91b8.css" rel="preload" as="style"><link href="/js/app.a7064069.js" rel="preload" as="script"><link href="/js/chunk-vendors.d7ec7d73.js" rel="preload" as="script"><link href="/css/chunk-vendors.0cbe91b8.css" rel="stylesheet"><link href="/css/app.4439dee6.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but bootstrap-vue-example doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.d7ec7d73.js"></script><script src="/js/app.a7064069.js"></script></body></html>

2
dist/js/app.4b13ac7c.js

File diff suppressed because one or more lines are too long

1
dist/js/app.4b13ac7c.js.map

File diff suppressed because one or more lines are too long

2
dist/js/app.a7064069.js

File diff suppressed because one or more lines are too long

1
dist/js/app.a7064069.js.map

File diff suppressed because one or more lines are too long

80
src/components/doclive/runLlo.vue

@ -39,11 +39,13 @@ export default {
'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js'
],
url_asciicss:[
'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css',
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/github.min.css',
// 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css',
'https://cdnjs.cloudflare.com/ajax/libs/asciidoctor.js/1.5.9/css/asciidoctor.min.css',
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css'
],
url_asciicssbody:[
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/github.min.css'
],
code: '',
editchoice: '',
@ -124,6 +126,7 @@ export default {
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
@ -131,7 +134,9 @@ export default {
<span id="AsciiElement"></span>
</div>
<div id="lastElement">
<span id="jsElement"></span>
<div>
<span id="jsElement"></span>
</div>
</div>
</body>
</html>`
@ -139,14 +144,39 @@ export default {
var htmlAscii = new DOMParser().parseFromString(thishtml, "text/html");
// -------------------------------------
// ------- insert script head
// ------- create css body
// -------------------------------------
var arrayLengthb = this.url_asciicssbody.length
for (var i = 0; i < arrayLengthb; i++) {
var asciilinkb = document.createElement('link');
asciilinkb.rel = 'stylesheet';
asciilinkb.href = this.url_asciicssbody[i]
//let parentDivb = htmlAscii.getElementById("jsElement").parentNode
//let lastelb = document.getElementById("jsElement")
let parentDivb = htmlAscii.getElementById("lastElement").parentNode
let lastelb = document.getElementById("lastElement")
parentDivb.insertBefore(asciilinkb, lastelb)
//console.log(this.url_asciicss[i])
}
// -------------------------------------
// ------- insert script head allagi se body
// -------------------------------------
var arrayLengthi1 = this.url_asciijshighlight.length
for (var i = 0; i < arrayLengthi1; i++) {
//var asciiscript0 = document.createElement('script');
// asciiscript0.type = 'text/javascript';
// asciiscript0.src = this.url_asciijshighlight[i]
//htmlAscii.head.appendChild(asciiscript0);
var asciiscript0 = document.createElement('script');
asciiscript0.type = 'text/javascript';
asciiscript0.src = this.url_asciijshighlight[i]
htmlAscii.head.appendChild(asciiscript0);
//let parentDiv0 = htmlAscii.getElementById("jsElement").parentNode
//let lastel0 = document.getElementById("jsElement")
let parentDiv0 = htmlAscii.getElementById("lastElement").parentNode
let lastel0 = document.getElementById("lastElement")
parentDiv0.insertBefore(asciiscript0, lastel0)
}
// -------------------------------------
@ -180,25 +210,28 @@ export default {
topwindow(msg);
window.parent.postMessage({'event': 'warranty-transaction-success', 'data': msg , 'field': field}, origin);
};`
var asciiscript2 = document.createElement('script');
asciiscript2.type = 'text/javascript';
asciiscript2.innerHTML = myfunction
htmlAscii.head.appendChild(asciiscript2);
//var asciiscript2 = document.createElement('script');
// asciiscript2.type = 'text/javascript';
// asciiscript2.innerHTML = myfunction
// htmlAscii.head.appendChild(asciiscript2);
// -------------------------------------
// ------- insert script body
// -------------------------------------
var arrayLengthi = this.url_asciijs.length
//console.log(arrayLengthi)
for (var i = 0; i < arrayLengthi; i++) {
var asciiscript = document.createElement('script');
asciiscript.type = 'text/javascript';
asciiscript.src = this.url_asciijs[i]
let parentDiv = htmlAscii.getElementById("jsElement").parentNode
let lastel = document.getElementById("jsElement")
parentDiv.insertBefore(asciiscript, lastel)
//htmlAscii.body.appendChild(asciiscript);
}
// var arrayLengthi = this.url_asciijs.length
// //console.log(arrayLengthi)
// for (var i = 0; i < arrayLengthi; i++) {
// var asciiscript = document.createElement('script');
// asciiscript.type = 'text/javascript';
// asciiscript.src = this.url_asciijs[i]
// let parentDiv = htmlAscii.getElementById("jsElement").parentNode
// let lastel = document.getElementById("jsElement")
// //let parentDiv = htmlAscii.getElementById("lastElement").parentNode
// //let lastel = document.getElementById("lastElement")
// parentDiv.insertBefore(asciiscript, lastel)
// //htmlAscii.body.appendChild(asciiscript);
// }
// -------------------------------------
// ------- run hlhs body
@ -206,7 +239,12 @@ export default {
var asciiscript1 = document.createElement('script');
asciiscript1.type = 'text/javascript';
asciiscript1.innerHTML = "hljs.initHighlighting()";
htmlAscii.body.appendChild(asciiscript1);
//let parentDivl = htmlAscii.getElementById("jsElement").parentNode
//let lastell = document.getElementById("jsElement")
let parentDivl = htmlAscii.getElementById("lastElement").parentNode
let lastell = document.getElementById("lastElement")
parentDivl.insertBefore(asciiscript1, lastell)
//htmlAscii.body.appendChild(asciiscript1);
// -------------------------------------
// ------- html serialize

Loading…
Cancel
Save