GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codeekage/import-html: Import

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
import-html.js
import-html.js
 
 
import-html.old.js
import-html.old.js
 
 

Repository files navigation

Import-HTML

Import HTML is a small JS library that let's you easily import html files directly into your html codes. it's not that complicated! 😩

Usage

Step 0

Download this project as zip file from the top right of your screen.

Step 1

Use the custom html tag <import-html></import-html> as shown below to import html using the data-src attr.

Exmaple

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Import HTML</title>
</head>
<body>
    <import-html data-src="header.html"></import-html>
    <import-html data-src="body.html"></import-html>
    <import-html data-src="./layout/sidebar.html"></import-html>
    <script src="js/import-html.js"></script>
</body>
</html>

That simple. 🙌🙌

About

Import

Resources

Readme
MIT license
Activity

Stars

9 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.