Skip to content

Commit

Permalink
update folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mholta committed Jul 9, 2021
1 parent 0413801 commit 3bf8441
Show file tree
Hide file tree
Showing 11 changed files with 1,970 additions and 885 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Scripts used in Webflow

HTML dumps are stored in this folder for testing scripts.

Should have the same naming as the corresponding `.js` file.

## Folder structure

```
pages
└── pagename
├── pagename.html
├── pagename.js
└── extra.css
```

`pagename.html` - the HTML dump.

`pagename.js` - page spesific JavaScript file to run on the page.

`extra.css` - page spesific CSS. Inserted into webflow in the custom code `<head>` section.

## Add / update HTML dumps

1. Copy `<body>` tag of document from web inspector. Duplicate the template folder and replace existing `<body>`-tag within the document..

2. Add `action="/"` on all `<form>`-tags. This is due to the WF form handling.

3. Replace CDN script tag with path to script in parent folder.
File renamed without changes.
Loading

0 comments on commit 3bf8441

Please sign in to comment.