welcome.js

From disqus.com, 6 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to TimelineFiltersCollection.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/59195c93 Embed
Download Paste or View Raw
  1. define('home/templates/welcome',['handlebars', 'handlebars.partials', 'core/extensions/handlebars.helpers'], function(Handlebars) {
  2.  
  3. return Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
  4.     var lookupProperty = container.lookupProperty || function(parent, propertyName) {
  5.         if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  6.           return parent[propertyName];
  7.         }
  8.         return undefined
  9.     };
  10.  
  11.   return "<div class=\"spacing-bottom animate-fade-up-out\">\n<span class=\"button button-fill--green text-medium\">"
  12.     + container.escapeExpression(lookupProperty(helpers,"gettext").call(depth0 != null ? depth0 : (container.nullContext || {}),"Email verified!",{"name":"gettext","hash":{},"data":data,"loc":{"start":{"line":4,"column":52},"end":{"line":4,"column":81}}}))
  13.     + "</span>\n</div>\n";
  14. },"3":function(container,depth0,helpers,partials,data) {
  15.     var lookupProperty = container.lookupProperty || function(parent, propertyName) {
  16.         if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  17.           return parent[propertyName];
  18.         }
  19.         return undefined
  20.     };
  21.  
  22.   return "<div>\n<a class=\"text-small\" href=\"/home/\" data-action=\"complete-onboarding\">\n"
  23.     + container.escapeExpression(lookupProperty(helpers,"gettext").call(depth0 != null ? depth0 : (container.nullContext || {}),"Skip",{"name":"gettext","hash":{},"data":data,"loc":{"start":{"line":26,"column":0},"end":{"line":26,"column":18}}}))
  24.     + "\n</a>\n</div>\n";
  25. },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
  26.     var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  27.         if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  28.           return parent[propertyName];
  29.         }
  30.         return undefined
  31.     };
  32.  
  33.   return "<div class=\"welcome__wrapper text-center padding-default\">\n"
  34.     + ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"showVerifiedMessage") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":6,"column":7}}})) != null ? stack1 : "")
  35.     + "<div class=\"padding-gutter\">\n<img class=\"img-responsive\" src=\""
  36.     + alias2(lookupProperty(helpers,"urlfor").call(alias1,"cdn",{"name":"urlfor","hash":{},"data":data,"loc":{"start":{"line":8,"column":33},"end":{"line":8,"column":49}}}))
  37.     + "/img/empty-states/discussions.png\">\n</div>\n<h1 class=\"text-largest text-gray-darker padding-default\">\n"
  38.     + alias2(lookupProperty(helpers,"gettext").call(alias1,"Welcome to %(disqus)s, %(name)s!",{"name":"gettext","hash":{"name":((stack1 = (depth0 != null ? lookupProperty(depth0,"user") : depth0)) != null ? lookupProperty(stack1,"name") : stack1),"disqus":"Disqus"},"data":data,"loc":{"start":{"line":11,"column":0},"end":{"line":13,"column":19}}}))
  39.     + "</h1>\n<p class=\"padding-default text-large text-gray-dark\">\n"
  40.     + alias2(lookupProperty(helpers,"gettext").call(alias1,"Easily find %(greatdiscussions)s being started by people just like you in our channels.",{"name":"gettext","hash":{"greatdiscussions":lookupProperty(helpers,"tag").call(alias1,"strong",{"name":"tag","hash":{"text":lookupProperty(helpers,"gettext").call(alias1,"great discussions",{"name":"gettext","hash":{},"data":data,"loc":{"start":{"line":16,"column":40},"end":{"line":16,"column":69}}})},"data":data,"loc":{"start":{"line":16,"column":19},"end":{"line":16,"column":70}}})},"data":data,"loc":{"start":{"line":15,"column":0},"end":{"line":16,"column":72}}}))
  41.     + "\n</p>\n<div class=\"padding-default\">\n<a class=\"button button-fill--brand button-padding-wider text-large\" href=\"/home/explore/\">\n"
  42.     + alias2(lookupProperty(helpers,"gettext").call(alias1,"Let's go!",{"name":"gettext","hash":{},"data":data,"loc":{"start":{"line":20,"column":0},"end":{"line":20,"column":23}}}))
  43.     + "\n</a>\n</div>\n"
  44.     + ((stack1 = lookupProperty(helpers,"unless").call(alias1,(depth0 != null ? lookupProperty(depth0,"registeredThisWeek") : depth0),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":23,"column":0},"end":{"line":29,"column":11}}})) != null ? stack1 : "")
  45.     + "</div>\n";
  46. },"useData":true})
  47.  
  48. });
  49. // https://c.disquscdn.com/next/c0d8fa9/home/js/templates/welcome.js

Replies to welcome.js rss

Title Name Language When
emailVerificationAlert.js disqus.com javascript 6 Months ago.

Reply to "welcome.js"

Here you can reply to the paste above