Like SystemiConnectFri 15 Oct 2021, 04:50
Auto Save MessagesLGforumFri 26 Feb 2021, 13:31
New tutorial questionTheCrowMon 15 Feb 2021, 08:12
Support iOS Emojis (and other platforms)LGforumSun 14 Feb 2021, 01:25
LGforum (2806)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
Mr.Easybb (1587)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
Bloodbath (745)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
Rukiafan (533)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
Dom (513)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
puppycheese (446)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
pedro (330)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
Neymar (301)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
Hitsu (281)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 
Flora (275)
Topics tagged under 12 on AvacWeb Vote_lcapTopics tagged under 12 on AvacWeb Voting_barTopics tagged under 12 on AvacWeb Vote_rcap 

Search found 1 match for 12

Guest
Search in: JavaScript & JQuery
Topic: Forumotion API
Forumotion API
on Sat 04 Jun 2016, 07:17 by Guest
Good try, {@=590}Hitsu{/@}! I've changed the topic title for you and made it Tutorial {#}12{/#}.

I agree, to make things look a little less complicated and inviting to keep people posting ideas for the API, you should make the code more readable. Apart from that, I think it's a good first start. Keep it up! Smile

Code:
var $fm = {
 version: 1.3,
 use: !0,
 author: "Hitsu",
 cookie: {
  cook: function(e, o, n) {
   my_setcookie(e, o, n)
  },
  take: function(e) {
   return my_getcookie(e)
  },
  eat: function(e) {
   document.cookie = e + "=; expires=Thu, 01 Jan 1970 00:00:01 GMT;", console.log("Yummy cookies!")
  }
 },
 forumData: {
  username: _userdata.username,
  guest: function() {
   return _userdata.session_logged_in ? !1 : !0
  },
  member: function() {
   return _userdata.session_logged_in ? !0 : !1
  },
  memberAvatar: _userdata.avatar,
  isTopic: function() {
   return window.location.href.indexOf("t") > -1 ? !0 : !1
  },
  utilities: {
   log: function(e, o) {
    arguments[1].value > 0 ? console.log(e, NaN + o) : console.log(e)
   }
  }
 }
};
if ($fm.use === !1) var $fm = !1;
if ($fm.version < 1.3) {
 var $fm = !1;
 console.log("Please update to 1.3 first.")
}
"Hitsu" != $fm.author && (document.innerHTML = "The original author of fmAPI was Hitsu. Don't steal from her.");
Forum: JavaScript & JQuery | Topic: Forumotion API
Back to top