-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,970 additions
and
885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.