Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
4.0 kB
1
Indexable
Never
var attempt =0;
var $subdatett;
var $raterid;
var $country;
var $emailid;
var $nrtct;
var $subpdate; 
var $date; 
var $nrtNow;


$subdatett = "2000-01-01"; // data.subscribe_date;
$raterid = 666; // data.raterid;
$country = "US"; // data.country;
$emailid = $emailidd; //$emailidd; data.email;
$nrtct = 0; // data.nrtct;
$subpdate = "2000-01-01"; // data.subscribe_date;

var $emailidd = "rater@mt2015.com"; //$('ul.ewok-rater-header-user>li:nth-child(1)').text();    

var $nrt = $('.container>.ewok-rater-task-header').text();
if ($nrt.length == 58){$nrtNow = "1"}else{$nrtNow = "0"}
var $restNow = "No"


function savemenu() {
    var e = $("input[id=ascheck]").is(":checked");
    localStorage.setItem("ascheck", e);
    var t = $("input[id=dupescheck]").is(":checked");
    localStorage.setItem("dupescheck", t);
    var a = $("#asinmins").val();
    localStorage.setItem("asinmin", a);
    var o = $("input[name=aetorrh]:radio:checked").val();
    localStorage.setItem("aetorrh", o);
    var n = $("select[name=subsound]").val();
    localStorage.setItem("subsound", n);
    var i = $("input[id=alinmins]").val();
    localStorage.setItem("alinmin", i);
    var l = $("select[name=notsound]").val();
    localStorage.setItem("notsound", l);
    var r = $("input[id=ltnt]").is(":checked");
    localStorage.setItem("ltnt", r);
    var ma =$("input[id=marc]").is(":checked");
    localStorage.setItem("marc",ma);
    var am =$("input[id=amarc]").is(":checked");
    localStorage.setItem("amarc",am)
    var as =$("input[id=aasub]").is(":checked");
    localStorage.setItem("aasub",as)
    var cu =$(".custaud").val();
    localStorage.setItem("custurl",cu)
    $(".box").hide(),
        $(".button-open").show()
    location.reload();
}

function loadmenu() {
    null === localStorage.getItem("asinmin") && localStorage.setItem("asinmin", 0),
        null === localStorage.getItem("custurl") && localStorage.setItem("custurl", 0),
        null === localStorage.getItem("uprm1") && localStorage.setItem("uprm1", "no"),
        null === localStorage.getItem("alinmin") && localStorage.setItem("alinmin", 0),
        null === localStorage.getItem("subsound") && localStorage.setItem("subsound", "confident"),
        null === localStorage.getItem("ascheck") && localStorage.setItem("ascheck", !0),
        null === localStorage.getItem("dupescheck") && localStorage.setItem("dupescheck", !0),
        null === localStorage.getItem("aetorrh") && localStorage.setItem("aetorrh", "yes"),
        null === localStorage.getItem("notsound") && localStorage.setItem("notsound", "none.ogg"),
        null === localStorage.getItem("ltnt") && localStorage.setItem("ltnt", !0),
        "true" == localStorage.getItem("ltnt") && $("input[id=ltnt]").prop("checked", !0),
        null === localStorage.getItem("marc") && localStorage.setItem("marc", !1),
        "true" == localStorage.getItem("marc") && $("input[id=marc]").prop("checked", !0),
        null === localStorage.getItem("amarc") && localStorage.setItem("amarc", !1),
        "true" == localStorage.getItem("amarc") && $("input[id=amarc]").prop("checked", !0),
        null === localStorage.getItem("aasub") && localStorage.setItem("aasub", !1),
        "true" == localStorage.getItem("aasub") && $("input[id=aasub]").prop("checked", !0),
        "true" == localStorage.getItem("ascheck") && $("input[id=ascheck]").prop("checked", !0),
        "true" == localStorage.getItem("dupescheck") && $("input[id=dupescheck]").prop("checked", !0);
    var e = localStorage.getItem("asinmin");
    "" == e && localStorage.setItem("asinmin", 0);
    $("#asinmins").val(e);
    var t = localStorage.getItem("aetorrh");
    "" == t && localStorage.setItem("aetorrh", "yes"),
        "yes" == t && $("input[id=aetdur]").prop("checked", !0),
        "no" == t && $("input[id=rhdur]").prop("checked", !0);
    var a = localStorage.getItem("subsound");