Code Monkey home page Code Monkey logo

Comments (3)

minfrin avatar minfrin commented on May 28, 2024

I figured out this was caused by a missing <!-- at the end of the scripts, which was being used as a hack to hide the existing static page.

A more rigorous approach would be to use the tag at the end of the HeaderName file, and a closing tag in the ReadmeName file.

This means when javascript is switched off, the page still works.

from webdav-js.

dom111 avatar dom111 commented on May 28, 2024

Hey there,

Thanks for the valuable feedback! The examples provided are just provided as-is for a starting point rather than a fully fledged integration so, yeah, definitely a hack to make it look 'right' without much in the way of configuration.

Sounds like a sensible idea to me, also potentially just obliterating the DOM entirely would be another option, but I was worried about lack of flexibility (lets say you wanted to display a disclaimer or whatever in the Header) afforded by those options. If you have time would you mind having a go at those changes and setting up a PR? If not I'll come back to take a look at this as time allows.

Thanks for your kind words too!

Dom

from webdav-js.

stokito avatar stokito commented on May 28, 2024

We can just clear an existing body with:

console.log("Clear existing body if any")
document.body.innerHTML = ""

from webdav-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.