Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions 11 site/nu-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
* in this file.
*
*/
var idCount = 0
var NuScript = {};
NuScript.idCount = 0
var urlInput = null
var fileInput = null
var textarea = null
Expand Down Expand Up @@ -93,7 +94,7 @@ function initFieldHolders() {
copySourceIntoTextArea()
if (textarea.value == '') {
textarea.value = htmlBoilerplate
if (supportsLocalStorage() && localStorage["inputWasCss"] == "yes") {
if (supportsLocalStorage() && localStorage.inputWasCss == "yes") {
textarea.value = ""
}
}
Expand Down Expand Up @@ -130,7 +131,7 @@ function initFieldHolders() {
location.hash = '#textarea'
} else {
installUrlInput()
history.pushState("", document.title, location.pathname);
history.pushState(null, document.title, location.pathname);
}
if (supportsLocalStorage()) {
localStorage["lastInputMode"] = this.value
Expand Down Expand Up @@ -400,7 +401,7 @@ function moveLangAndDirWarningsAndAddLinks() {
langOrDirLinks.innerHTML = langGuidance
} else if (warningText.indexOf("Content-Language") != -1) {
langOrDirLinks.innerHTML = contentLangGuidance
} else if (warningText.indexOf("dir=") != 1) {
} else if (warningText.indexOf("dir=") != -1) {
langOrDirLinks.innerHTML = dirGuidance
}
langOrDirWarning.appendChild(langOrDirLinks)
Expand All @@ -421,7 +422,7 @@ function moveLangAndDirWarningsAndAddLinks() {

function reflow(element) {
if (element.offsetHeight) {
var reflow = element.offsetHeight
element.offsetHeight;
}
}

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.