Skip to content

Instantly share code, notes, and snippets.

View luanrm's full-sized avatar
🎯
Focusing

Luan Rodrigues luanrm

🎯
Focusing
  • Brasilia
View GitHub Profile
var cores = [
"#F44336",
"#E91E63",
"#9C27B0",
"#673AB7",
"#3F51B5",
"#2196F3",
"#03A9F4",
"#00BCD4",
"#009688",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<p class="esg-click-to-play-video">Teste</p>
<p class="esg-click-to-play-video">Teste</p>
/*
A simple jQuery modal (http://github.com/kylefox/jquery-modal)
Version 0.7.0
*/
!function(o){var t=[],i=function(){return t.length?t[t.length-1]:null},e=function(){var o,i=!1;for(o=t.length-1;o>=0;o--)t[o].$blocker&&(t[o].$blocker.toggleClass("current",!i).toggleClass("behind",i),i=!0)};o.modal=function(e,s){var l,n;if(this.$body=o("body"),this.options=o.extend({},o.modal.defaults,s),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),this.$blocker=null,this.options.closeExisting)for(;o.modal.isActive();)o.modal.close();if(t.push(this),e.is("a"))if(n=e.attr("href"),/^#/.test(n)){if(this.$elm=o(n),1!==this.$elm.length)return null;this.$body.append(this.$elm),this.open()}else this.$elm=o("<div>"),this.$body.append(this.$elm),l=function(o,t){t.elm.remove()},this.showSpinner(),e.trigger(o.modal.AJAX_SEND),o.get(n).done(function(t){if(o.modal.isActive()){e.trigger(o.modal.AJAX_SUCCESS);var s=i();s.$elm.empty().append(t).on(o.modal.CLOSE,l),s.hideSpinner(),s.open(),e.trigger(o.modal.AJAX_C
var CLIENT_ID = web.client_id;
var SCOPES = ["https://www.googleapis.com/auth/calendar"];
function checkAuth() {
gapi.auth.authorize(
{
'client_id': CLIENT_ID,
'scope': SCOPES.join(' '),
'immediate': true