Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require_once 'templates/_header.php';
- include "config.php";
- include "cache.php";
- ?>
- <?php
- $conn = new mysqli($servername, $username, $password, $dbname);
- if ($conn->connect_error)
- {
- die("Connection failed: " . $conn-g>connect_error);
- }
- // check if user is banned
- if(userBanned(@$_SESSION['steamid']))
- {
- ?>
- <!-- Display ban message -->
- <div class="notice notice-danger">
- <strong>
- Your account has been banned.
- </strong>
- <span style="display: block">
- <b>Reason:</b> <?php echo getBanReason($_SESSION['steamid']); ?>
- </span>
- </div>
- <?php
- }
- ?>
- <?php
- if($site_online==1 && $allowed==1 || $site_online==0 && $allowed==1)
- {
- ?>
- <!-- Start: injected by Adguard -->
- <link rel="stylesheet" type="text/css" href="//local.adguard.com/adguard-ajax-api/injections/adguard-styles.css?ts=63611264224615&generic=1&domain=server141.hosting.reg.ru"/>
- <link rel="stylesheet" type="text/css" href="//local.adguard.com/adguard-ajax-api/injections/adguard-styles.css?ts=63611264224615&offset=0"/>
- <script src="//local.adguard.com/adguard-ajax-api/injections/userscripts/Adguard Assistant?ts=63611264241822" type="text/javascript"></script>
- <script src="//local.adguard.com/adguard-ajax-api/injections/userscripts/Adguard Popup Blocker?ts=63611264241822" type="text/javascript"></script>
- <script src="//local.adguard.com/adguard-ajax-api/injections/userscripts/Web of Trust?ts=63611264241822" type="text/javascript"></script>
- <script src="//local.adguard.com/adguard-ajax-api/injections/adguard-script.js?ts=63611264224615&domain=server141.hosting.reg.ru&generic=1&elemhide=1" type="text/javascript"></script>
- <!-- End: injected by Adguard -->
- <?php
- function isTradable($ItemHashName)
- {
- $quality = "";
- if ( // Consumer
- preg_match('/Consumer /iu', $ItemHashName)) {
- $quality = "Consumer";
- } elseif ( // Industrial
- preg_match('/Industrial /iu', $ItemHashName)) {
- $quality = "Industrial";
- } elseif ( // Mil-Spec
- preg_match('/Mil-Spec /iu', $ItemHashName)) {
- $quality = "Mil-Spec";
- } elseif ( // Restricted
- preg_match("/Restricted /iu", $ItemHashName)) {
- $quality = "Restricted";
- } elseif ( // Classified
- preg_match('/Classified /iu', $ItemHashName)) {
- $quality = "Classified";
- } elseif ( // Covert
- preg_match('/Covert /iu', $ItemHashName)) {
- $quality = "Covert";
- } elseif ( // Covert
- preg_match('/Contraband /iu', $ItemHashName)) {
- $quality = "Contraband";
- }
- if ( //Checking if the Weapon is a:
- preg_match('/★ StatTrak™ /iu', $ItemHashName)) {
- $quality = $quality . " RareStatTrak";
- } elseif ( // Rare
- preg_match('/★ /iu', $ItemHashName)) {
- $quality = $quality . " Rare";
- } elseif ( // Souvenir
- preg_match('/Souvenir /iu', $ItemHashName)) {
- $quality = $quality . " Souvenir";
- } elseif ( // Souvenir
- preg_match('/StatTrak™ /iu', $ItemHashName)) {
- $quality = $quality . " StatTrak";
- } else {
- $quality = $quality . " Normal";
- }
- return $quality;
- }
- ?>
- <script>
- var Consumer = 0;
- var Industrial = 0;
- var MilSpec = 0;
- var Restricted = 0;
- var Classified = 0;
- var Covert = 0;
- var Contraband = 0;
- var Normal = 0;
- var RareStatTrak = 0;
- var Rare = 0;
- var Souvenir = 0;
- var StatTrak = 0;
- function showWeapons(elem){
- var value = elem.value;
- switch(value){
- case "Consumer":
- if (Consumer==0){
- Consumer = 1;
- } else {
- Consumer = 0;
- }
- break;
- case "Industrial":
- if (Industrial==0){
- Industrial = 1;
- } else {
- Industrial = 0;
- }
- break;
- case "Mil-Spec":
- if (MilSpec==0){
- MilSpec = 1;
- } else {
- MilSpec = 0;
- }
- break;
- case "Restricted":
- if (Restricted==0){
- Restricted = 1;
- } else {
- Restricted = 0;
- }
- break;
- case "Classified":
- if (Classified==0){
- Classified = 1;
- } else {
- Classified = 0;
- }
- break;
- case "Covert":
- if (Covert==0){
- Covert = 1;
- } else {
- Covert = 0;
- }
- break;
- case "Contraband":
- if (Contraband==0){
- Contraband = 1;
- } else {
- Contraband = 0;
- }
- break;
- case "Normal":
- if (Normal==0){
- Normal = 1;
- } else {
- Normal = 0;
- }
- break;
- case "Rare":
- if (Rare==0){
- Rare = 1;
- } else {
- Rare = 0;
- }
- break;
- case "RareStatTrak":
- if (RareStatTrak==0){
- RareStatTrak = 1;
- } else {
- RareStatTrak = 0;
- }
- break;
- case "Souvenir":
- if (Souvenir==0){
- Souvenir = 1;
- } else {
- Souvenir = 0;
- }
- break;
- case "StatTrak":
- if (StatTrak==0){
- StatTrak = 1;
- } else {
- StatTrak = 0;
- }
- break;
- }
- $(".Normal."+action).hide();
- $(".RareStatTrak."+action).hide();
- $(".Rare."+action).hide();
- $(".Souvenir."+action).hide();
- $(".StatTrak."+action).hide();
- var categoryselect = 0;
- var change = 0;
- if (Normal==1){
- change = 0;
- categoryselect = 1;
- if (Consumer==1){
- $(".Consumer.Normal."+action).show();
- change = 1;
- }
- if (Industrial==1){
- $(".Industrial.Normal."+action).show();
- change = 1;
- }
- if (MilSpec==1){
- $(".Mil-Spec.Normal."+action).show();
- change = 1;
- }
- if (Restricted==1){
- $(".Restricted.Normal."+action).show();
- change = 1;
- }
- if (Classified==1){
- $(".Classified.Normal."+action).show();
- change = 1;
- }
- if (Covert==1){
- $(".Covert.Normal."+action).show();
- change = 1;
- }
- if (Contraband==1){
- $(".Contraband.Normal."+action).show();
- change = 1;
- }
- if (change==0){
- $(".Normal."+action).show();
- }
- }
- if (StatTrak==1){
- change = 0;
- categoryselect = 1;
- if (Consumer==1){
- $(".Consumer.StatTrak."+action).show();
- change = 1;
- }
- if (Industrial==1){
- $(".Industrial.StatTrak."+action).show();
- change = 1;
- }
- if (MilSpec==1){
- $(".Mil-Spec.StatTrak."+action).show();
- change = 1;
- }
- if (Restricted==1){
- $(".Restricted.StatTrak."+action).show();
- change = 1;
- }
- if (Classified==1){
- $(".Classified.StatTrak."+action).show();
- change = 1;
- }
- if (Covert==1){
- $(".Covert.StatTrak."+action).show();
- change = 1;
- }
- if (Contraband==1){
- $(".Contraband.StatTrak."+action).show();
- change = 1;
- }
- if (change==0){
- $(".StatTrak."+action).show();
- }
- }
- if (Rare==1){
- change = 0;
- categoryselect = 1;
- if (Consumer==1){
- $(".Consumer.Rare."+action).show();
- change = 1;
- }
- if (Industrial==1){
- $(".Industrial.Rare."+action).show();
- change = 1;
- }
- if (MilSpec==1){
- $(".Mil-Spec.Rare."+action).show();
- change = 1;
- }
- if (Restricted==1){
- $(".Restricted.Rare."+action).show();
- change = 1;
- }
- if (Classified==1){
- $(".Classified.Rare."+action).show();
- change = 1;
- }
- if (Covert==1){
- $(".Covert.Rare."+action).show();
- change = 1;
- }
- if (Contraband==1){
- $(".Contraband.Rare."+action).show();
- change = 1;
- }
- if (change==0){
- $(".Rare."+action).show();
- }
- }
- if (RareStatTrak==1){
- change = 0;
- categoryselect = 1;
- if (Consumer==1){
- $(".Consumer.RareStatTrak."+action).show();
- change = 1;
- }
- if (Industrial==1){
- $(".Industrial.RareStatTrak."+action).show();
- change = 1;
- }
- if (MilSpec==1){
- $(".Mil-Spec.RareStatTrak."+action).show();
- change = 1;
- }
- if (Restricted==1){
- $(".Restricted.RareStatTrak."+action).show();
- change = 1;
- }
- if (Classified==1){
- $(".Classified.RareStatTrak."+action).show();
- change = 1;
- }
- if (Covert==1){
- $(".Covert.RareStatTrak."+action).show();
- change = 1;
- }
- if (Contraband==1){
- $(".Contraband.RareStatTrak."+action).show();
- change = 1;
- }
- if (change==0){
- $(".RareStatTrak."+action).show();
- }
- }
- if (categoryselect==0){
- change = 0;
- if (Consumer==1){
- $(".Consumer."+action).show();
- change = 1;
- }
- if (Industrial==1){
- $(".Industrial."+action).show();
- change = 1;
- }
- if (MilSpec==1){
- $(".Mil-Spec."+action).show();
- change = 1;
- }
- if (Restricted==1){
- $(".Restricted."+action).show();
- change = 1;
- }
- if (Classified==1){
- $(".Classified."+action).show();
- change = 1;
- }
- if (Covert==1){
- $(".Covert."+action).show();
- change = 1;
- }
- if (Contraband==1){
- $(".Contraband."+action).show();
- change = 1;
- }
- if (change==0){
- $(".Normal."+action).show();
- $(".RareStatTrak."+action).show();
- $(".Rare."+action).show();
- $(".Souvenir."+action).show();
- $(".StatTrak."+action).show();
- }
- }
- }
- </script>
- <script>
- var buyitems = new Array();
- var sellitems = new Array();
- var buyvalue = 0;
- var sellvalue = 0;
- function rewritevalue(){
- if(sellvalue==0 & logged==1){
- document.getElementById("checkout_r").style.display = "none";
- }
- else if(logged==1){
- document.getElementById("checkout_r").style.display = "";
- }
- document.getElementById("sell").innerHTML = "<?php echo $currencyname;?> " + (sellvalue) / 100.00;
- if(buyvalue==0 & logged==1){
- document.getElementById("checkout").style.display = "none";
- }
- else if(logged==1){
- document.getElementById("checkout").style.display = "";
- }
- document.getElementById("buy").innerHTML = "<?php echo $currencyname;?> " + (buyvalue) / 100.00;
- }
- function submit(){
- var sellitemids = JSON.stringify(sellitems);
- var buyitemids = JSON.stringify(buyitems);
- window.location = "queue.php?action=sell&botid=<?php echo $botsteamid; ?>&steamid=<?php echo $steamid; ?>&sellitems=" + sellitemids;
- window.location = "queue.php?action=buy&botid=<?php echo $botsteamid; ?>&steamid=<?php echo $steamid; ?>&buyitems=" + buyitemids;
- }
- Array.prototype.remove = function(value) {
- var idx = this.indexOf(value);
- if (idx != -1) {
- return this.splice(idx, 1); // The second parameter is the number of elements to remove.
- }
- return false;
- }
- </script>
- </div>
- <div class="container">
- <span id="message"></span>
- <div class="row">
- <div class="col-md-5 profileBlock">
- <div class="row">
- <div class="col-md-12 selectedInventory">
- <div class="inventoryHeader def-bg10 right">
- <div class="ribbon floatLeft">
- <div class="y-offer"><h3>Your offer</h3></div>
- </div>
- <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-lg">
- <div class="modal-content">
- <div class="modal-body">
- <p class="body-message centered"><strong>Balance delay is 10 minutes</strong></p>
- </div>
- <div class="modal-footer no-borders">
- <button type="button" class="bz bz-primary" data-dismiss="modal">Close</button>
- </div>
- </div>
- </div>
- </div>
- <span class="inventory-value" id="sell"><?php echo $currencyname; ?> 0.00</span>
- </div>
- </div>
- <div class="col-md-12 userInventory">
- <!-- Block1 -->
- <div class="def-bg05 inventory" id="serving">
- <?php
- $data = getJson('http://steamcommunity.com/profiles/' . $steamid . '/inventory/json/730/2', $steamid, "730");
- $json = json_decode($data);
- $pricedata = getJson('functions/all.txt', "pricing", "730");
- $pricing = json_decode($pricedata);
- $i = 0;
- foreach ($json->rgInventory as $ids) {
- $classid = $ids->classid;
- $instanceid = $ids->instanceid;
- $id = $ids->id;
- $combined = $classid . "_" . $instanceid;
- $mydata = $json->rgDescriptions->$combined;
- $ic = 0;
- foreach ($mydata->tags as $colors) {
- $ic = $ic + 1;
- if ($ic == 2) {
- $type = $colors->category;
- }
- if ($colors->category_name == "Quality") {
- $color = $colors->color;
- }
- }
- $key = false;
- $pos = strpos($mydata->market_hash_name, "Case Key");
- if ($pos !== false) {
- $key = true;
- }
- $pos = strpos($mydata->market_hash_name, "eSports Key");
- if ($pos !== false) {
- $key = true;
- }
- $item = $mydata->market_hash_name;
- $itemprice = $pricing->$item;
- $itemprice = $itemprice * 100 * 1.15;
- if ($itemprice <= $pricelimit) {
- $accept = "false";
- } else {
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $sql29 = "SELECT * FROM `prices`";
- $result4 = mysqli_query($conn, $sql29);
- while ($row = mysqli_fetch_assoc($result4)) {
- $value = $row['value'];
- $bpa = $row['buyadd'];
- $bpm = $row['buymulti'];
- $spa = $row['selladd'];
- $spm = $row['sellmulti'];
- if ($value >= $itemprice) {
- $itemprice = floor(($itemprice + $bpa) * $bpm);
- $accept = "true";
- goto a;
- } else {
- $accept = "false";
- }
- }
- a:
- $conn->close();
- }
- if ($mydata->tradable == 1 and ($type == "Weapon" or $key == true) and $accept == "true") {
- echo '<div class="csgoitem" data-title="' . $mydata->market_hash_name . '" data-tooltip="Type: ' . $mydata->type . '<br>Value: ' . $itemprice . ' '.$currencyname.'" class="button ' . isTradable($mydata->type) . '" id="' . $id . '" value="' . $itemprice .'" style="margin: 5px; padding: 5px;';
- if (strpos($mydata->market_hash_name, 'StatTrak') !== false) {
- echo 'border: 1px solid #CF6A32;';
- } else {
- echo 'border: 1px solid gray;';
- }
- echo 'width: 90px;
- height: 90px;
- float: left;
- background:url(https://steamcommunity-a.akamaihd.net/economy/image/' . $mydata->icon_url . '/80x80) no-repeat center center;">
- <div class="itemName">' . $mydata->market_hash_name . '</div><div class="itemPrice">' . $itemprice/100.00 . ' '.$currencyname.'</div>
- </div>';
- echo "<script>document.getElementById('" . $id . "').onclick = function() {
- var className = document.getElementById('" . $id . "').className;
- if ( ~className.indexOf(' active') ) {
- this.className = className.replace(' active', '');
- document.getElementById(" . $id . ").style['background-color'] = ''
- sellitems.remove(" . $id . ");
- sellvalue = sellvalue - (parseInt(document.getElementById(" . $id . ").getAttribute('value')));
- rewritevalue();
- } else {
- this.className += ' active';
- document.getElementById(" . $id . ").style['background-color'] = 'rgba(0, 255, 31, 0.22)'
- sellitems.push(" . $id . ");
- sellvalue = sellvalue + (parseFloat(document.getElementById(" . $id . ").getAttribute('value')));
- rewritevalue();
- }}
- </script>";
- }}
- ?>
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-2">
- <div class="centerBlock def-bg05">
- <p>EXCHANGE</p>
- </div>
- <script>
- var socketbot = io('http://nanotradeis.life:7777');
- socketbot.on('errortrade', function() {
- $('#message').html('<div class="alert alert-danger" role="alert">Trade offer error. Please try again.</div>');
- })
- socketbot.on('success', function(data) {
- tid = data.tid;
- $('#message').html('<div class="alert alert-success" role="alert">Trade offer submitted successfully. <strong>security code - </strong><span class="code" style="\
- background: #fff;\
- border-radius: 2px;\
- padding: 7px;\
- margin-right: 20px;\
- ">'+data.code+'</span><button id="info_dialog_url_web">Open trade offer</button></div>');
- $('#info_dialog_url_web').on("click", function() {
- var winOffer = window.open('https://steamcommunity.com/tradeoffer/' + tid + '/', '', 'height=1120,width=1028,resize=yes,scrollbars=yes');
- winOffer.focus();
- });
- })
- function deposititems() {
- if (sellitems.length == 0) {
- alert('Select the items in the left block');
- return;
- }
- var v = '<?=$tradeofferurl?>';
- var v1 = v.split('&token=')[0];
- v1 = v1.substr(51);
- var v2 = v.split('&token=')[1];
- var partner = v1;
- var token = v2;
- $('#message').html('<div class="loader"></div>');
- var iditems = '';
- for (var i = 0; i < sellitems.length; i++) {
- console.log(sellitems[i]);
- iditems += sellitems[i] + ',';
- }
- iditems = iditems.substr(0, iditems.length - 1);
- console.log(iditems);
- var settings = {
- partner: partner,
- token: token,
- steamid: '<?=$steamid?>',
- assetids: sellitems,
- price: $('#sell').text().substr(2),
- appid: 730
- }
- socketbot.emit('tradeyopta', settings);
- }
- </script>
- <?php
- if (!empty($tradeofferurl)) {
- echo "<script>var logged = 1;</script>";
- } else {
- echo "<script>var logged = 0;</script>";
- }
- echo " <span id='checkout_r' style='display:none;'><a class='button wobble-horizontal' onclick='deposititems()' role='button'><center>Deposit</center></a></span>";
- echo "</h1>";
- if (empty($steamid)) {
- echo '<div class="alert alert-danger" role="alert">Login first to use this Page!</div>';
- } else if (empty($tradeofferurl)) {
- echo '<div class="alert alert-danger" role="alert">Link a TradeOfferURL to your Account first to use this Page!</div>';
- }
- ?>
- <?php
- if(!empty($tradeofferurl)){
- echo "<script>var logged = 1;</script>";
- } else {
- echo "<script>var logged = 0;</script>";
- }
- echo "</h1>";
- $balance = getUserBalance($_SESSION['steamid']);
- if(!empty($balance == 0)) {
- echo '<div class="alert alert-warning" role="alert">You don`t have enough balance to withdraw this item!</div>';
- } else {
- echo " <span id='checkout' style='display:none;'><a onclick='submit();' class='button_r wobble-horizontal' role='button'><center>Withdraw</center></a></span>";
- }
- if (empty($steamid)) {
- echo '';
- } else if (empty($tradeofferurl)) {
- echo ''; }
- ?>
- <!-- Block2 -->
- <div class="centerBlock def-bg05 rates">
- <h3>Market Rates %</h3>
- <h5>KNIVES</h5>
- <div class="market knives">
- <span class="mr-1">97%</span><i class="fa fa-exchange" aria-hidden="true"></i><span class="mr-2">100%</span>
- </div>
- <h5>KEYS</h5>
- <div class="market keys">
- <span class="mr-1">101%</span><i class="fa fa-exchange" aria-hidden="true"></i><span class="mr-2">104%</span>
- </div>
- <h5>OTHER</h5>
- <div class="market other">
- <span class="mr-1">94%</span><i class="fa fa-exchange" aria-hidden="true"></i><span class="mr-2">97%</span>
- </div>
- </div>
- </div>
- <div class="col-md-5 profileBlock">
- <div class="row">
- <div class="col-md-12 selectedInventory">
- <div class="inventoryHeader def-bg10 right">
- <div class="ribbon floatRight">
- <div class="b-offer"><h3>Bot's offer</h3></div>
- </div>
- <span class="inventory-value" id="buy" style="float: left;"><?php echo $currencyname; ?> 0.00</span>
- </div>
- </div>
- <div class="col-md-12 userInventory">
- <div style="background: rgb(24, 47, 84);padding: 10px;border-radius: 6px 6px 6px 0px;">
- <input type="text" id="search" placeholder="search..." style="outline: none;color: #fff;padding: 10px;"></div>
- <div class="def-bg05 inventory" id="servingBots">
- <?php
- $data = getJson('http://steamcommunity.com/profiles/' . $botsteamid . '/inventory/json/730/2', $botsteamid, "730");
- $json = json_decode($data);
- $pricedata = getJson('functions/all.txt', "pricing", "730");
- $pricing = json_decode($pricedata);
- $i=0;
- foreach ($json->rgInventory as $ids)
- {
- $classid = $ids->classid;
- $instanceid = $ids->instanceid;
- $id = $ids->id;
- $combined = $classid . "_" . $instanceid;
- $mydata = $json->rgDescriptions->$combined;
- $ic = 0;
- foreach ($mydata->tags as $colors){
- $ic = $ic + 1;
- if ($ic ==2){
- $type = $colors->category;
- }
- if ($colors->category_name == "Quality") {
- $color = $colors->color;
- }
- }
- $key = false;
- $pos = strpos($mydata->market_hash_name, "Case Key");
- if ($pos !== false) {
- $key = true;
- }
- $pos = strpos($mydata->market_hash_name, "eSports Key");
- if ($pos !== false) {
- $key = true;
- }
- $item = $mydata->market_hash_name;
- $itemprice = $pricing->$item;
- $itemprice = $itemprice * 100 * 0.9;
- if ($itemprice <= $pricelimitbot) {
- $accept = "false";
- } else {
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $sql29 = "SELECT * FROM `prices`";
- $result4 = mysqli_query($conn, $sql29);
- while($row = mysqli_fetch_assoc($result4)) {
- $buyvalue=$row['value'];
- $bpa=$row['buyadd'];
- $bpm = $row['buymulti'];
- $spa=$row['selladd'];
- $spm = $row['sellmulti'];
- if($buyvalue>=$itemprice){
- $itemprice = ceil(($itemprice + $spa) * $spm);
- $accept = "true";
- } else {
- $accept = "false";
- }
- }
- $conn->close();
- }
- if ($mydata->tradable == 1 and ($type == "Weapon" or $key == true) and $accept == "true") {
- echo '<div class="csgoitem" data-title="' . $mydata->market_hash_name . '" data-tooltip="Type: ' . $mydata->type . '<br>Value: ' . $itemprice . ' '.$currencyname.'" class="button ' . isTradable($mydata->type) . '" id="' . $id . '" value="' . $itemprice . '" style="margin: 5px; padding: 5px;';
- if (strpos($mydata->market_hash_name, 'StatTrak') !== false) {
- echo 'border: 1px solid #CF6A32;';
- } else {
- echo 'border: 1px solid gray;';
- }
- echo 'width: 90px;
- height: 90px;
- float: left;
- background:url(https://steamcommunity-a.akamaihd.net/economy/image/' . $mydata->icon_url . '/80x80) no-repeat center center;">
- <div class="itemName">' . $mydata->market_hash_name . '</div><div class="itemPrice">' . $itemprice/100.00 . ' '.$currencyname.'</div>
- </div>';
- echo "<script>document.getElementById('" . $id . "').onclick = function() {
- var className = document.getElementById('" . $id . "').className;
- if ( ~className.indexOf(' active') ) {
- this.className = className.replace(' active', '');
- document.getElementById(" . $id . ").style['background-color'] = ''
- buyitems.remove(" . $id . ");
- buyvalue = buyvalue - (parseInt(document.getElementById(" . $id . ").getAttribute('value')));
- rewritevalue();
- } else {
- this.className += ' active';
- document.getElementById(" . $id . ").style['background-color'] = 'rgba(0, 255, 31, 0.22)'
- buyitems.push(" . $id . ");
- buyvalue = buyvalue + (parseFloat(document.getElementById(" . $id . ").getAttribute('value')));
- rewritevalue();
- }}
- </script>";
- }}
- ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <style>
- .loader {
- border: 7px solid #f3f3f3;
- border-top: 7px solid #2980b9;
- border-bottom: 7px solid #2980b9;
- border-radius: 50%;
- width: 50px;
- height: 50px;
- animation: spin 2s linear infinite;
- margin: 0 auto;
- margin-bottom: 20px;
- }
- @keyframes spin {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- </style>
- <script>
- $(document).ready(function()
- {
- var $wrapper = $('#servingBots');
- $wrapper.find('.csgoitem').sort(function (a, b) {
- return +$(b).attr("value") - +$(a).attr("value") ;
- })
- .appendTo( $wrapper );
- $('.csgoitem').qtip({
- content: {
- text: function(event, api) {
- // Retrieve content from ALT attribute of the $('.selector') element
- return $(this).attr('data-tooltip');
- },
- title: function(event, api) {
- // Retrieve content from ALT attribute of the $('.selector') element
- return $(this).attr('data-title');
- }
- },
- position: {
- target: 'mouse', // Track the mouse as the positioning target
- adjust: { x: 5, y: 5 } // Offset it slightly from under the mouse
- },
- });
- });
- </script>
- <?php
- }
- ?>
- <?php $conn->close(); ?>
- <?php require_once 'templates/_footer.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement