Jump to content
McKay Development

4049_1572836826

Member
  • Content Count

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Interests
    JavaScript jQuery HTML PHP CSS SQL NODE JS PYTHON JSON

Recent Profile Visitors

204 profile views
  1. https://github.com/DoctorMcKay/node-steam-user#enabletwofactorcallback
  2. var request = require("request"); var steamid = '76561197960934690'; var apikey = 'u api key'; request({ url: 'http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key='+apikey+'&steamid='+steamid+'&format=json&include_appinfo=1', json: true }, function (error, response, body) { // console.log(body.response.games); if (!error && response.statusCode === 200) { for (i = 0; i <= body.response.games.length; i++) { console.log(body.response.games[i].name + ' - ' + body.response.games[i].playtime_forever / 60 + ' hrs.')
  3. client.on('disconnected', () => { console.log("Bot Disconnected!"); }); community.on('sessionExpired', () => { console.log("Session expired!"); });
  4. And lvl add with steam web api or another api. <head> <link rel="stylesheet" type="text/css" href="https://steamcommunity-a.akamaihd.net/public/shared/css/shared_global.css"> </head> <body> <div class="friendPlayerLevel"><span class="friendPlayerLevelNum">274</span></div> <!--cahnge lvl--> <script> var lvl = document.getElementsByClassName('friendPlayerLevelNum')[0].innerHTML; if (lvl.length == 1) { document.getElementsByClassName('friendPlayerLevel')[0].classList.add("lvl_0"); } el
  5. class every 10 lvl with bg or img and u get e.g. . if class lvl_20 end 20 on javascript set if from 20 to 29 lvl and lvl if is 25, add class to div around lvl to lvl 20 img shape. I take shapes from this site. https://steamlvlup.com/img/steam_levels/100.png only change png number, site have lvls shape from lvl 100-4999 if (lvl >= 0 && lvl <= 9) { document.getElementById("lvl").style.border = "2px solid #9b9b9b" //lvl 1 to 99 dont want img bcs only circle } else if (lvl >= 10 && lvl <= 19) { here same style border ... } else if (lvl >=
  6. client.getSteamLevels([steamID], function (results) { var lvl = results % 100; if (lvl >= 0 && lvl <= 9) { gray } else if (lvl >= 10 && lvl <= 19) { red } else if (lvl >= 20 && lvl <= 29) { orange } else if (lvl >= 30 && lvl <= 39) { yellow } else if (lvl >= 40 && lvl <= 49) { green } else if (lvl >= 50 && lvl <= 59) { blue
×
×
  • Create New...