Skip to content

Instantly share code, notes, and snippets.

View ivos's full-sized avatar

Ivo Maixner ivos

  • Praha, Czech rep.
View GitHub Profile
@ivos
ivos / fixNavbarIssue.js
Created November 11, 2012 18:31 — forked from claudiodangelis/fixNavbarIssue.js
[bootstrap] fixing issue #4153 `navbar-fixed-top`
function fixNavbarIssue(){
/* Quick & dirt draft fix for the bootstrap's navbar-fixed-top issue.
Overview
When you call a given section of a document (e.g. via <a href="#section"> or domain.com/page#section1) browsers show that section at the top of window. Bootstrap's navbar-fixed-top, _since it's fixed_, *overlays* first lines of content.
This function catches all of the <a> tags pointing to a section of the page and rewrites them to properly display content.
Works fine even if a # section is called from URL.
Usage
### Table: Pending orders

- Customer
- Order date
- Goods
- Quantity
- Price
### Form: Create order

- Customer
- Order date
- Goods
- Quantity
- Price
- [: Create]()
### Form: Create order

- Customer (required)
- Goods (required)
- Quantity (required)
- Price (required)
- [: Create]()
### Form: Create order

- Customer (required)
- [: Create]()

### Table: Order items

- Goods (required text)
- Quantity (required text)
### ReadOnlyForm: Order detail

- Customer: Planet express
- Order date: 2 days ago (Feb 20, 2020)

### Table: Order items

- Goods
 - Cigar
### Table: Pending orders

- Customer
    - Planet express
    - MomCorp
    - Planet express
- Order date
    - Feb 20, 2020
 - Feb 18, 2020
## Order

### Attributes:

- Customer (mandatory string): Planet Express
- Order date (mandatory date): 2020-02-20
- Items (1:n `OrderItem`)

## Order item
### Form: Create customer

- Name (R)
- Address (R multiLine)
- [primary: Save]()
### Form: Find customer

- Name

### Table: Customers

- Name
    - Cookieville Minimum Security Orphanarium
 - Democratic Order of Planets