-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #640 from nasa-gibs/module-loaders-animation
Module loaders for animation feature
- Loading branch information
Showing
15 changed files
with
284 additions
and
287 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,19 @@ | ||
/* | ||
* Default jquery-ui button | ||
*/ | ||
a.ui-button.ui-state-default { | ||
color: #eee; | ||
font-weight: 700; | ||
border: 1px solid #666; | ||
font-size: 1em; | ||
background-image: linear-gradient(#555, #666); | ||
background-image: -ms-linear-gradient(#555, #666); | ||
background-image: -o-linear-gradient(#555, #666); | ||
font-family: "Segoe UI", "Arial", sans-serif; | ||
} | ||
a.ui-button.ui-state-default.ui-state-hover { | ||
border-color: #eee; | ||
background-color: #eee; | ||
background-image: none; | ||
color: #404040; | ||
} |
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
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,29 @@ | ||
import loEach from 'lodash/each'; | ||
|
||
export function parse (state, errors) { | ||
if (state.a) { | ||
var str = state.a; | ||
var astate = { | ||
attributes: [] | ||
}; | ||
|
||
// Get text before ( | ||
var on = str.match(/[^\(,]+/)[0]; | ||
if (on !== 'on') { // don't do anything if wrong format | ||
state.a = undefined; | ||
return; | ||
} | ||
|
||
// remove (, get key value pairs | ||
str = str.match(/\(.*\)/)[0].replace(/[\(\)]/g, ''); | ||
var kvps = str.split(','); | ||
loEach(kvps, function (kvp) { | ||
var parts = kvp.split('='); | ||
astate.attributes.push({ | ||
id: parts[0], | ||
value: parts[1] | ||
}); | ||
}); | ||
state.a = astate; | ||
} | ||
}; |
Oops, something went wrong.