• Stars
    star
    105
  • Rank 328,196 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Grid Layout Polyfill

Following this spec http://www.w3.org/TR/2012/WD-css3-grid-layout-20120322/ because current IE10 is using that one.

The concept of this polyfill are trying to only change the CSS and not to edit any DOM elements.

Also the polyfill currently only polyfill the -ms- prefix

How to use

Simply add the script after jQuery

<script src="grid-layout-polyfill.min.js"></script>

Options

Methods

  • $(grid).gridLayout('refresh') will recalculate existing initiated grid. Useful when for example you have set a new height with JavaScript on the grid.

Events

$(grid).gridLayout({
	// Resize event, triggers when window resize with 100ms delay to increase performance
	'resize' : function() {} 
})

Browser support

  • IE9+ and all other browsers

Limitation

  • IE9: If display: -ms-grid; are declared in inline-style, you need to add the attribute data-ms-grid on the element, because IE9 removes invalid css value.

What is covered?

display: -ms-grid;
-ms-grid-columns: 100px 1fr auto; /* Only pixel, fraction and auto units */
-ms-grid-rows: 100px 1fr auto; /* Only pixel, fraction and auto units */

-ms-grid-column: 1;
-ms-grid-row: 1;
-ms-grid-column-span: 1;
-ms-grid-row-span: 1;

More Repositories

1

Battery-Time-Remaining

Show battery time remaining in Mac OS X 10.8+ Mountain Lion and Mavericks
Objective-C
412
star
2

react-ga4

React Google Analytics 4
JavaScript
265
star
3

jQuery-Css3-Finalize

Tired of adding prefix for each browser when it comes to the new css3 attributes?
JavaScript
166
star
4

Bitcoin-phpMiner

phpMiner for bitcoin
PHP
121
star
5

jQuery-Ajax-Upload

Uses native XHR to upload files
PHP
95
star
6

Laravel-Facebook-SDK

Laravel Bundle - Facebook SDK
PHP
36
star
7

Smush.it-API

Smush.it API
PHP
10
star
8

Ractive-TypeScript-Definition

ractive.d.ts
TypeScript
9
star
9

sweden-coronavirus

Sverige Coronavirus (COVID-19) datakälla
TypeScript
7
star
10

Laravel-Extended

Extended Library of Laravel
PHP
6
star
11

Math

PHP
5
star
12

BombCarrier

A bomberman game using WebGL, Works best in Chrome
JavaScript
5
star
13

Media-Stream-Center

Stream any media from any OS to any unit
PHP
5
star
14

Rebellious-Tower-Defence

2d tower defence game in C++. A project in 2009
C++
5
star
15

snippets

All kind of snippets
PHP
5
star
16

Laravel-Query-Viewer

Laravel Bundle - Query Viewer
PHP
4
star
17

Text-To-Speech

4
star
18

Python-WebSocket

Python websocket - asynchronous socket - draft-ietf-hybi-thewebsocketprotocol-00
Python
4
star
19

avanza-api

Avanza API
TypeScript
4
star
20

Startup

Gathering all the good parts from all my projects and making it to a mini framework
PHP
4
star
21

Ractive-UI

JavaScript
3
star
22

Portfolio-in-Python

A project in course TDP003. Made in 2009.
Python
2
star
23

Image-Dock

Takes all images on your site and creates a navigation
JavaScript
2
star
24

jQuery-Parallel-Coordinates

JavaScript
2
star
25

bullhorn-api

TypeScript
2
star
26

CSS-Analyzer

Tool, utility, parser for CSS in JavaScript
JavaScript
2
star
27

Single-Sign-On

OpenId + Facebook
PHP
2
star
28

RuneCrafter

Multiplayer 3d game made in XNA 3.0. A project in 2009.
C#
1
star
29

bitmex-data-downloader

Download Bitmex price data
TypeScript
1
star
30

Polyfill

JavaScript
1
star
31

KaW-Guide

1
star
32

API

PHP
1
star
33

yap.nu

HTML
1
star
34

electron-boilerplate

TypeScript
1
star
35

pGChart

php class making charts via google chart url
PHP
1
star
36

Bitcoin-Wallet-RPC

Bitcoin-Wallet-RPC on Windows
C#
1
star
37

Build-your-site

A site where you can build a site without needing to code.
CSS
1
star
38

WINAML

WINAML Is Not A Markup Language, is a language created by Johan Alm and Han Lin Yap. A project in 2010.
Ruby
1
star
39

Ingrediens.se

Sök efter ingredienser
PHP
1
star
40

pQuery

Makes PHP more powerful, inspired from Jquery, Python and Ruby!
PHP
1
star
41

hardhat-faucet

Hardhat plugin for faucet
TypeScript
1
star