Skip to content

Squids Pro Quo. The Unofficial Awesomeifyer for Squiz Matrix.

Notifications You must be signed in to change notification settings

patpaev/squids-pro-quo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Squids Pro Quo

🐙 💯

Usage

Put the following code anywhere in your HTML:

<script src="https://d2miw5gu5zak37.cloudfront.net/" type="text/javascript"></script>

This will automatically pull the latest release.

To lock your injection to a specific version, specify the version:

<script src="https://d2miw5gu5zak37.cloudfront.net/squids-pro-quo-v0.0.0.js" type="text/javascript"></script>

Better Datetime

datetime

  • Puts the correct headings above the each dropdown in a datetime, and puts the fields next to each other instead of on top of each other
  • Adjusts the widths of the labels and boxes to fit 100% of the container, no matter the number of y/m/d/h/i/s fields

Notes

  • You cannot use textboxes for any fields, they must all be select dropdowns

Conditional Form Sections

giphy

Allows sections of a form to be hidden unless a certain radio button is selected.

Instructions

  1. Add # followed by a number at the start of a section name, the section will be hidden by default
  2. Add ? followed by a section number to the start of the text in the radio button to make selecting the button display this section

Notes

  • These #s and ?s won't be displayed on the page
  • Only use this for 1-page forms
  • Don't have a default value on your radio buttons
  • Don't have any 'required' fields inside conditional sections
  • Date/time fields are 'required' by default, you must select 'allow blank' on all fields for this component

Layout of 'Field Notes'

fieldnote

Fix the 'Filed Note' (form helper text) weird spacing, and give it a slightly prettier styling.


Development

Create the applicable src/js/[feature_name].js / src/css/[feature_name].css files

Deployment

Have the dependencies installed

npm install
  1. Bump the version number in package.json
  2. Run grunt and verify the output
  3. Push to master, which will automatically propogate the version and changes.

Notes

Because of the nature of the javascript injection, all CSS must use double quotes (") only. Any use of single quotes (') will break the injection!

About

Squids Pro Quo. The Unofficial Awesomeifyer for Squiz Matrix.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published