Created
May 31, 2012 00:28
-
-
Save hlfcoding/2839810 to your computer and use it in GitHub Desktop.
treasure-hunt-snippets
This file contains hidden or 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
// code that shows victory screen... | |
gapi.hangout.data.setValue(_ITEM_FOUND_KEY, JSON.stringify({ | |
'item': item_data.id, | |
'found_by': Participants.getLocal() | |
})); |
This file contains hidden or 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
@-webkit-keyframes pulsate { | |
0% { opacity: 0.1; } | |
50% { opacity: 0.2; } | |
100% { opacity: 0.1; } | |
} | |
@-moz-keyframes pulsate { | |
0% { -moz-opacity: 0.1; } | |
50% { -moz-opacity: 0.2; } | |
100% { -moz-opacity: 0.1; } | |
} | |
@-ms-keyframes pulsate { | |
0% { opacity: 0.1; } | |
50% { opacity: 0.2; } | |
100% { opacity: 0.1; } | |
} | |
.overlays > .overlay.item { | |
-moz-animation: pulsate 5s infinite; | |
-webkit-animation: pulsate 5s infinite; | |
-ms-animation: pulsate 5s infinite; | |
opacity: 0.1; | |
-moz-opacity: 0.1; | |
filter:alpha(opacity=10); | |
/* ... */ | |
} |
This file contains hidden or 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
gapi.hangout.data.onStateChanged.add(function(state_data) { | |
_.each(state_data.addedKeys, function(data) { | |
switch ( data.key ) { | |
case _ITEM_FOUND_KEY: | |
// code that shows defeat screen... |
This file contains hidden or 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
<head> | |
<!-- ... --> | |
<link href='//fonts.googleapis.com/css?family=Merriweather:400,700' rel='stylesheet' type='text/css'><!-- Available as font-family: 'Merriweather'; font-weight: 400; --> | |
<!-- ... --> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment