10/04 - Wake Me After Wednesday

Status
Not open for further replies.

Kerek

Red Cat-Bear
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
65,199
Reaction score
145,730
Points
2,088
Gender
Male
Wouldn't it have been easier to quote someone else who had said that?:p
I don't know his name and she's not there anyway.
 
  • Like
Reactions: Jerami

Jerami

Well-Known Member
Contributor
Crowd Pleaser
HIT Poster
Joined
Jan 24, 2016
Messages
14,405
Reaction score
25,210
Points
2,238
  • Like
Reactions: Vanyanka

Jerami

Well-Known Member
Contributor
Crowd Pleaser
HIT Poster
Joined
Jan 24, 2016
Messages
14,405
Reaction score
25,210
Points
2,238
Title: FOR MEN IN FULLTIME EMPLOYMENT: Survey about relationships at work | PANDA
Worker: Preview | Accept | Requester
Requester: Jennifer Whitson [A27478O4TW6XA] (Contact)
TO 1: [Pay: 3.84] [Fast: 4.63] [Comm: 3.13] [Fair: 4.22] [Reviews: 123] [ToS: 1]
TO 2:
[Rate: --/hr] [Pen: -- days] [Res: -- of 0] [Rec: -- of 0] [Rej: 0] [ToS: 0] [Brk: 0]
Reward:
$1.50
Duration: 60 minutes
Available: 1
Description: FOR MEN IN FULLTIME EMPLOYMENT: A study about social networks
Requirements: Location is one of: CA, US; HIT approval rate (%) is not less than 95;
HIT exported from Mturk Suite v1.25.7
1.5min
 
  • Like
Reactions: Kerek

Vanyanka

Thoroughbred of Sin
Contributor
Crowd Pleaser
HIT Poster
Joined
Jan 11, 2016
Messages
34,905
Reaction score
81,247
Points
2,338
Location
The Jungle
Gender
Female
Title: FOR WOMEN IN FULLTIME EMPLOYMENT: Survey about relationships at work | PANDA
Worker: Preview | Accept | Requester
Requester: Jennifer Whitson [A27478O4TW6XA] (Contact)
TO 1: [Pay: 3.85] [Fast: 4.63] [Comm: 3.13] [Fair: 4.22] [Reviews: 124] [ToS: 1]
TO 2:
[Rate: --/hr] [Pen: -- days] [Res: -- of 0] [Rec: -- of 0] [Rej: 0] [ToS: 0] [Brk: 0]
Reward:
$1.50
Duration: 60 minutes
Available: 1
Description: FOR WOMEN IN FULLTIME EMPLOYMENT: A study about social networks
Requirements: Location is one of: CA, US; HIT approval rate (%) is not less than 95;
HIT exported from Mturk Suite v1.25.7
 
  • Like
Reactions: Kerek and Jaded

Jerami

Well-Known Member
Contributor
Crowd Pleaser
HIT Poster
Joined
Jan 24, 2016
Messages
14,405
Reaction score
25,210
Points
2,238
Title: $0.25 for a 1 min Survey(~ 1 minutes) | PANDA
Worker: Preview | Accept | Requester
Requester: Adam Waytz [A1RPEITCVSBUQJ] (Contact)
TO 1: [Pay: 4.47] [Fast: 4.84] [Comm: 4.68] [Fair: 4.90] [Reviews: 216] [ToS: 2]
TO 2:
Not Available
Reward: $0.25
Duration: 30 minutes
Available: 1
Description: You are being asked to take part in an online research study that may take around 1 minute and you will be paid $0.25 for your time.
Requirements: Exc: [1908229-59059] has not been granted; Total approved HITs is not less than 100; HIT approval rate (%) is not less than 95; Location is one of: US;
HIT exported from Mturk Suite v1.25.7
 

Vanyanka

Thoroughbred of Sin
Contributor
Crowd Pleaser
HIT Poster
Joined
Jan 11, 2016
Messages
34,905
Reaction score
81,247
Points
2,338
Location
The Jungle
Gender
Female
Title: Responses to current topics(~ 15 minutes) | PANDA
Worker: Preview | Accept | Requester
Requester: Andy [ACVYDJ076SQD6] (Contact)
TO 1: [Pay: 4.50] [Fast: 4.86] [Comm: 0.00] [Fair: 5.00] [Reviews: 14] [ToS: 0]
TO 2:
[Rate: $12.00/hr] [Pen: -- days] [Res: -- of 0] [Rec: 100% of 1] [Rej: 0] [ToS: 0] [Brk: 0]
Reward:
$0.75
Duration: 45 minutes
Available: 1
Description: In this experiment, you will read messages from a charity organization and respond to questions related to the message. The experiment will take less than 15 minutes to complete.
Requirements: Total approved HITs is not less than 100; Exc: [-1310748027-59517] has not been granted; HIT approval rate (%) is not less than 80; Location is one of: US;
HIT exported from Mturk Suite v1.25.7
 

Sondi

Goddess of soup
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
9,018
Reaction score
33,771
Points
1,213
Age
35
Gender
Female
posted this before, but I added the new delivery location option to the zoltar script I use in case anyone needs it;
Code:
// ==UserScript==
// @name         Project Endor (Zoltar) Temporary Fix
// @namespace    https://greasyfork.org/en/users/12709
// @version      1.0.03.09
// @description  easy clicks  for zoltars
// @author       feihtality
// @match        https://www.google.com/evaluation/endor/*
// @grant        none
// ==/UserScript==
/*jshint esnext:true*/

var gCarDealer = false;
var gUsedCarDealer = false;
var gDentist = false;

(function() {

    setTimeout( function() {
        var _p = document.querySelector('p');
        if (!/previewand/.test(document.referrer) && _p && /An error occurred/.test(_p.textContent)) document.location.reload();
        if (!/In this HIT we will ask you some questions/.test(document.querySelector('.question-container').textContent)) return;
        if (/Please check whether it's a website for a new car dealer in US/.test(document.getElementsByClassName('question-content')[1].textContent)) gCarDealer=true;
        if (/Includes dental, orthodontic, and oral surgery professionals/.test(document.getElementsByClassName('question-content')[1].textContent)) gDentist=true;
        if (/Business Category: Used Car Dealer/.test(document.getElementsByClassName('question-content')[1].textContent)) gUsedCarDealer=true;

        function make(tag) { return document.createElement(tag); }
        function get(val) { return document.querySelector('[value="'+val+'"]'); }
        function getID(theID) { return document.getElementById(theID); }
        function get2(val) { return document.querySelector(`[ng-true-value="'${val}'"]`); }
        function get3(val) { return document.querySelector('[aria-label="' + val + '"]'); }

        var div = document.body.appendChild(make('DIV')),
            p1 = div.appendChild(make('P')), p2 = div.appendChild(make('P')), p3 = div.appendChild(make('P')),
            p4 = div.appendChild(make('P')), p5 = div.appendChild(make('p')), p6 = div.appendChild(make('P'));
        if (gCarDealer) {
            var panel = {
                    p1: {
                        node: p1, options: {radio: true},
                        "Auto Dealer" :    { controller: make('BUTTON'), target: 'YES', type: "radio" },
                        "NOT Auto Franchise Dealer" : { controller: make('BUTTON'), target: 'NO', type: "radio" },
                        "Not Available" :     { controller: make('BUTTON'), target: 'NO', type: "checkbox" },
                    },
                    p2: {
                        node: p2, options: {radio: true},
                    },
                    p3: {
                        node: p3, options: {radio: true},
                    },
                    p4: {
                        node: p4, options: {radio: false},
                    },
                    p5: {
                        node: p5, options: {radio: true},
                    },
                    p6: {
                        node: p6, options: {radio: true},
                        SUBMIT : { controller: make('BUTTON'), target: 'submit', type: "submit" },
                    }
                };
        } else if (gDentist) {
            var panel = {
                    p1: {
                        node: p1, options: {radio: true},
                        "Dentist" :    { controller: make('BUTTON'), target: 'YES', type: "radio" },
                        "NOT Dentist" : { controller: make('BUTTON'), target: 'NO', type: "radio" },
                        "Not Available" :     { controller: make('BUTTON'), target: 'NO', type: "checkbox" },
                    },
                    p2: {
                        node: p2, options: {radio: true},
                    },
                    p3: {
                        node: p3, options: {radio: true},
                    },
                    p4: {
                        node: p4, options: {radio: false},
                    },
                    p5: {
                        node: p5, options: {radio: true},
                    },
                    p6: {
                        node: p6, options: {radio: true},
                        SUBMIT : { controller: make('BUTTON'), target: 'submit', type: "submit" },
                    }
                };
        } else if (gUsedCarDealer) {
            var panel = {
                    p1: {
                        node: p1, options: {radio: true},
                        "Used Car Dealer" :    { controller: make('BUTTON'), target: 'YES', type: "radio" },
                        "NOT Used Car Dealer" : { controller: make('BUTTON'), target: 'NO', type: "radio" },
                        "Not Available" :     { controller: make('BUTTON'), target: 'NO', type: "checkbox" },
                    },
                    p2: {
                        node: p2, options: {radio: false},
                        Acura : { controller: make('BUTTON'), target: 'Acura', type: "checkbox1" },
                        "Alfa Romeo" : { controller: make('BUTTON'), target: 'Alfa Romeo', type: "checkbox1" },
                        "Aston Martin" : { controller: make('BUTTON'), target: 'Aston Martin', type: "checkbox1" },
                        Audi : { controller: make('BUTTON'), target: 'Audi', type: "checkbox1" },
                        Bentley : { controller: make('BUTTON'), target: 'Bentley', type: "checkbox1" },
                        BMW : { controller: make('BUTTON'), target: 'BMW', type: "checkbox1" },
                        Buick : { controller: make('BUTTON'), target: 'Buick', type: "checkbox1" },
                        Cadillac : { controller: make('BUTTON'), target: 'Cadillac', type: "checkbox1" },
                        "Chevrolet" : { controller: make('BUTTON'), target: 'Chevrolet', type: "checkbox1" },
                        Chrysler : { controller: make('BUTTON'), target: 'Chrysler', type: "checkbox1" },
                        Dodge : { controller: make('BUTTON'), target: 'Dodge', type: "checkbox1" },
                        Ferrari : { controller: make('BUTTON'), target: 'Ferrari', type: "checkbox1" },
                        Fiat : { controller: make('BUTTON'), target: 'Fiat', type: "checkbox1" },
                        "Ford" : { controller: make('BUTTON'), target: 'Ford', type: "checkbox1" },
                        GMC : { controller: make('BUTTON'), target: 'GMC', type: "checkbox1" },
                        Holden : { controller: make('BUTTON'), target: 'Holden', type: "checkbox1" },
                        Honda : { controller: make('BUTTON'), target: 'Honda', type: "checkbox1" },
                        Hyundai : { controller: make('BUTTON'), target: 'Hyundai', type: "checkbox1" },
                        Infiniti : { controller: make('BUTTON'), target: 'Infiniti', type: "checkbox1" },
                        Isuzu : { controller: make('BUTTON'), target: 'Isuzu', type: "checkbox1" },
                        Jaguar : { controller: make('BUTTON'), target: 'Jaguar', type: "checkbox1" },
                        Jeep : { controller: make('BUTTON'), target: 'Jeep', type: "checkbox1" },
                        Kia : { controller: make('BUTTON'), target: 'Kia', type: "checkbox1" },
                        Lamborghini : { controller: make('BUTTON'), target: 'Lamborghini', type: "checkbox1" },
                        "Land Rover" : { controller: make('BUTTON'), target: 'Land Rover', type: "checkbox1" },
                        Lexus : { controller: make('BUTTON'), target: 'Lexus', type: "checkbox1" },
                        Lincoln : { controller: make('BUTTON'), target: 'Lincoln', type: "checkbox1" },
                        Lotus : { controller: make('BUTTON'), target: 'Lotus', type: "checkbox1" },
                        Maserati : { controller: make('BUTTON'), target: 'Maserati', type: "checkbox1" },
                        Mazda : { controller: make('BUTTON'), target: 'Mazda', type: "checkbox1" },
                        McLaren : { controller: make('BUTTON'), target: 'McLaren', type: "checkbox1" },
                        "Mercedes-Benz" : { controller: make('BUTTON'), target: 'Mercedes-Benz', type: "checkbox1" },
                        MINI : { controller: make('BUTTON'), target: 'MINI', type: "checkbox1" },
                        Mitsubishi : { controller: make('BUTTON'), target: 'Mitsubishi', type: "checkbox1" },
                        Nissan : { controller: make('BUTTON'), target: 'Nissan', type: "checkbox1" },
                        Pagani : { controller: make('BUTTON'), target: 'Pagani', type: "checkbox1" },
                        Peugeot : { controller: make('BUTTON'), target: 'Peugeot', type: "checkbox1" },
                        Porsche : { controller: make('BUTTON'), target: 'Porsche', type: "checkbox1" },
                        Ram : { controller: make('BUTTON'), target: 'Ram', type: "checkbox1" },
                        "Rolls-Royce" : { controller: make('BUTTON'), target: 'Rolls-Royce', type: "checkbox1" },
                        Scion : { controller: make('BUTTON'), target: 'Scion', type: "checkbox1" },
                        Smart : { controller: make('BUTTON'), target: 'Smart', type: "checkbox1" },
                        Subaru : { controller: make('BUTTON'), target: 'Subaru', type: "checkbox1" },
                        Toyota : { controller: make('BUTTON'), target: 'Toyota', type: "checkbox1" },
                        Volkswagen : { controller: make('BUTTON'), target: 'Volkswagen', type: "checkbox1" },
                        Volvo : { controller: make('BUTTON'), target: 'Volvo', type: "checkbox1" }
                    },
                    p3: {
                        node: p3, options: {radio: true},
                    },
                    p4: {
                        node: p4, options: {radio: false},
                    },
                    p5: {
                        node: p5, options: {radio: true},
                    },
                    p6: {
                        node: p6, options: {radio: true},
                        SUBMIT : { controller: make('BUTTON'), target: 'submit', type: "submit" },
                    }
                };
        } else {
            var panel = {
                    p1: {
                        node: p1, options: {radio: true},
                        goods :    { controller: make('BUTTON'), target: 'GOODS', type: "radio" },
                        services : { controller: make('BUTTON'), target: 'SERVICES', type: "radio" },
                        both :     { controller: make('BUTTON'), target: 'BOTH', type: "radio" },
                    },
                    p2: {
                        node: p2, options: {radio: true},
                        provider : { controller: make('BUTTON'), target: 'DIRECT_PROVIDER', type: "radio" },
                        retailer : { controller: make('BUTTON'), target: 'RETAILER', type: "radio" },
                        referral : { controller: make('BUTTON'), target: 'REFERRAL_AGGREGATOR', type: "radio" },
                        search :   { controller: make('BUTTON'), target: 'SEARCH_ENGINE', type: "radio" },
                        market :   { controller: make('BUTTON'), target: 'MARKETPLACE', type: "radio" },
                        deals :    { controller: make('BUTTON'), target: 'DEALS_PROVIDER', type: "radio" },
                        content :  { controller: make('BUTTON'), target: 'CONTENT_PUBLISHER', type: "radio" },
                    },
                    p3: {
                        node: p3, options: {radio: true},
                        physnone :           { controller: make('BUTTON'), target: 'NONE', type: "radio" },
                        single :             { controller: make('BUTTON'), target: 'LOCAL_SINGLETON', type: "radio" },
                        singleRegionBranch : { controller: make('button'), target: 'SINGLE_REGION_BRANCHES', type: "radio" },
                        multiRegionBranch :  { controller: make('button'), target: 'MULTIPLE_REGION_BRANCHES', type: "radio" },
                    },
                    p4: {
                        node: p4, options: {radio: false},
                        virtual: { controller: make('button'), target: 'VIRTUAL', type: "checkbox" },
                        custLoc: { controller: make('button'), target: 'CUSTOMER_LOCATION', type: "checkbox" },
                        busiLoc: { controller: make('button'), target: 'BUSINESS_LOCATION', type: "checkbox" },
                        notApp: { controller: make('button'), target: 'NOT_APPLICABLE', type: "checkbox" },
                    },
                    p5: {
                        node: p5, options: {radio: true},
                        direct :     { controller: make('BUTTON'), target: 'DIRECT', type: "radio" },
                        both   :     { controller: make('BUTTON'), target: 'radio_16', type: "radioID" },
                        indirect :   { controller: make('BUTTON'), target: 'INDIRECT', type: "radio" },
                    },
                    p6: {
                        node: p6, options: {radio: true},
                        SUBMIT : { controller: make('BUTTON'), target: 'submit', type: "submit" },
                    }
                };
        }
        div.style.cssText = "z-index:10; position:fixed; top:10%;right:50%; background:#eee; opacity:0.9; transform:translateX(50%);";
        div.className = 'zoltarpanel';

        var css = document.head.appendChild(document.createElement('STYLE'));
        css.innerHTML = '.zoltarpanel p {margin:5px}';

        function sel(group, item) {
            item.controller.onclick = () => {
                var prev = group.node.querySelector('[style]');
                if (prev && group.options.radio == true) prev.style.background = '';
                if (item.type=="radio") get(item.target).click();
                else if (item.type=="checkbox") get2(item.target).click();
                else if (item.type=="checkbox1") {
                    get("YES").click();
                    get3(item.target).click();
                } else if (item.type=="radioID") getID(item.target).click();
                else if (item.type=="submit") document.querySelector('input[type=submit]').click();
                if (group.options.radio == false) item.controller.style.background = (item.controller.style.background.indexOf('lightgreen') != -1) ? '' : 'lightgreen';
                else item.controller.style.background = 'lightgreen';
                if (item.type=="radio") scroller(get(item.target));
                else if (item.type=="checkbox") scroller(get2(item.target));
                else if (item.type=="checkbox1") scroller(get3(item.target));
                else if (item.type=="radioID") scroller(getID(item.target));
                else if (item.type=="submit") scroller(document.querySelector('input[type=submit]'));
            };
        }
        function scroller(loc, dt) {
            var getPos = function(el) { var offset = 0; while(el) { offset += el.offsetTop; el = el.offsetParent; } return offset; },
                target = getPos(loc),
                pos = window.scrollY,
                dpos = Math.ceil((target-pos)/3);
            dt = dt ? dt-1 : 25;
            if (target === pos || dpos === 0 || dt === 0) return;
            window.scrollBy(0,dpos);
            setTimeout( () => scroller(loc, dt), dt);
        }

        for (var j of Object.keys(panel)) {
            for (var k of Object.keys(panel[j])) {
                if (k === 'node' || k === 'options') continue;
                panel[j].node.appendChild(panel[j][k].controller);
                panel[j][k].controller.textContent = k;
                sel(panel[j], panel[j][k]);
            }
        }
    }, 903);
})();
 

Jerami

Well-Known Member
Contributor
Crowd Pleaser
HIT Poster
Joined
Jan 24, 2016
Messages
14,405
Reaction score
25,210
Points
2,238
  • Like
Reactions: Vanyanka and Jaded

Kuddish

Me fail English! That's unpossible
Contributor
Joined
Jan 24, 2016
Messages
3,800
Reaction score
7,804
Points
988
Age
42
Location
The D!
Gender
Male
posted this before, but I added the new delivery location option to the zoltar script I use in case anyone needs it;
Code:
// ==UserScript==
// @name         Project Endor (Zoltar) Temporary Fix
// @namespace    https://greasyfork.org/en/users/12709
// @version      1.0.03.09
// @description  easy clicks  for zoltars
// @author       feihtality
// @match        https://www.google.com/evaluation/endor/*
// @grant        none
// ==/UserScript==
/*jshint esnext:true*/

var gCarDealer = false;
var gUsedCarDealer = false;
var gDentist = false;

(function() {

    setTimeout( function() {
        var _p = document.querySelector('p');
        if (!/previewand/.test(document.referrer) && _p && /An error occurred/.test(_p.textContent)) document.location.reload();
        if (!/In this HIT we will ask you some questions/.test(document.querySelector('.question-container').textContent)) return;
        if (/Please check whether it's a website for a new car dealer in US/.test(document.getElementsByClassName('question-content')[1].textContent)) gCarDealer=true;
        if (/Includes dental, orthodontic, and oral surgery professionals/.test(document.getElementsByClassName('question-content')[1].textContent)) gDentist=true;
        if (/Business Category: Used Car Dealer/.test(document.getElementsByClassName('question-content')[1].textContent)) gUsedCarDealer=true;

        function make(tag) { return document.createElement(tag); }
        function get(val) { return document.querySelector('[value="'+val+'"]'); }
        function getID(theID) { return document.getElementById(theID); }
        function get2(val) { return document.querySelector(`[ng-true-value="'${val}'"]`); }
        function get3(val) { return document.querySelector('[aria-label="' + val + '"]'); }

        var div = document.body.appendChild(make('DIV')),
            p1 = div.appendChild(make('P')), p2 = div.appendChild(make('P')), p3 = div.appendChild(make('P')),
            p4 = div.appendChild(make('P')), p5 = div.appendChild(make('p')), p6 = div.appendChild(make('P'));
        if (gCarDealer) {
            var panel = {
                    p1: {
                        node: p1, options: {radio: true},
                        "Auto Dealer" :    { controller: make('BUTTON'), target: 'YES', type: "radio" },
                        "NOT Auto Franchise Dealer" : { controller: make('BUTTON'), target: 'NO', type: "radio" },
                        "Not Available" :     { controller: make('BUTTON'), target: 'NO', type: "checkbox" },
                    },
                    p2: {
                        node: p2, options: {radio: true},
                    },
                    p3: {
                        node: p3, options: {radio: true},
                    },
                    p4: {
                        node: p4, options: {radio: false},
                    },
                    p5: {
                        node: p5, options: {radio: true},
                    },
                    p6: {
                        node: p6, options: {radio: true},
                        SUBMIT : { controller: make('BUTTON'), target: 'submit', type: "submit" },
                    }
                };
        } else if (gDentist) {
            var panel = {
                    p1: {
                        node: p1, options: {radio: true},
                        "Dentist" :    { controller: make('BUTTON'), target: 'YES', type: "radio" },
                        "NOT Dentist" : { controller: make('BUTTON'), target: 'NO', type: "radio" },
                        "Not Available" :     { controller: make('BUTTON'), target: 'NO', type: "checkbox" },
                    },
                    p2: {
                        node: p2, options: {radio: true},
                    },
                    p3: {
                        node: p3, options: {radio: true},
                    },
                    p4: {
                        node: p4, options: {radio: false},
                    },
                    p5: {
                        node: p5, options: {radio: true},
                    },
                    p6: {
                        node: p6, options: {radio: true},
                        SUBMIT : { controller: make('BUTTON'), target: 'submit', type: "submit" },
                    }
                };
        } else if (gUsedCarDealer) {
            var panel = {
                    p1: {
                        node: p1, options: {radio: true},
                        "Used Car Dealer" :    { controller: make('BUTTON'), target: 'YES', type: "radio" },
                        "NOT Used Car Dealer" : { controller: make('BUTTON'), target: 'NO', type: "radio" },
                        "Not Available" :     { controller: make('BUTTON'), target: 'NO', type: "checkbox" },
                    },
                    p2: {
                        node: p2, options: {radio: false},
                        Acura : { controller: make('BUTTON'), target: 'Acura', type: "checkbox1" },
                        "Alfa Romeo" : { controller: make('BUTTON'), target: 'Alfa Romeo', type: "checkbox1" },
                        "Aston Martin" : { controller: make('BUTTON'), target: 'Aston Martin', type: "checkbox1" },
                        Audi : { controller: make('BUTTON'), target: 'Audi', type: "checkbox1" },
                        Bentley : { controller: make('BUTTON'), target: 'Bentley', type: "checkbox1" },
                        BMW : { controller: make('BUTTON'), target: 'BMW', type: "checkbox1" },
                        Buick : { controller: make('BUTTON'), target: 'Buick', type: "checkbox1" },
                        Cadillac : { controller: make('BUTTON'), target: 'Cadillac', type: "checkbox1" },
                        "Chevrolet" : { controller: make('BUTTON'), target: 'Chevrolet', type: "checkbox1" },
                        Chrysler : { controller: make('BUTTON'), target: 'Chrysler', type: "checkbox1" },
                        Dodge : { controller: make('BUTTON'), target: 'Dodge', type: "checkbox1" },
                        Ferrari : { controller: make('BUTTON'), target: 'Ferrari', type: "checkbox1" },
                        Fiat : { controller: make('BUTTON'), target: 'Fiat', type: "checkbox1" },
                        "Ford" : { controller: make('BUTTON'), target: 'Ford', type: "checkbox1" },
                        GMC : { controller: make('BUTTON'), target: 'GMC', type: "checkbox1" },
                        Holden : { controller: make('BUTTON'), target: 'Holden', type: "checkbox1" },
                        Honda : { controller: make('BUTTON'), target: 'Honda', type: "checkbox1" },
                        Hyundai : { controller: make('BUTTON'), target: 'Hyundai', type: "checkbox1" },
                        Infiniti : { controller: make('BUTTON'), target: 'Infiniti', type: "checkbox1" },
                        Isuzu : { controller: make('BUTTON'), target: 'Isuzu', type: "checkbox1" },
                        Jaguar : { controller: make('BUTTON'), target: 'Jaguar', type: "checkbox1" },
                        Jeep : { controller: make('BUTTON'), target: 'Jeep', type: "checkbox1" },
                        Kia : { controller: make('BUTTON'), target: 'Kia', type: "checkbox1" },
                        Lamborghini : { controller: make('BUTTON'), target: 'Lamborghini', type: "checkbox1" },
                        "Land Rover" : { controller: make('BUTTON'), target: 'Land Rover', type: "checkbox1" },
                        Lexus : { controller: make('BUTTON'), target: 'Lexus', type: "checkbox1" },
                        Lincoln : { controller: make('BUTTON'), target: 'Lincoln', type: "checkbox1" },
                        Lotus : { controller: make('BUTTON'), target: 'Lotus', type: "checkbox1" },
                        Maserati : { controller: make('BUTTON'), target: 'Maserati', type: "checkbox1" },
                        Mazda : { controller: make('BUTTON'), target: 'Mazda', type: "checkbox1" },
                        McLaren : { controller: make('BUTTON'), target: 'McLaren', type: "checkbox1" },
                        "Mercedes-Benz" : { controller: make('BUTTON'), target: 'Mercedes-Benz', type: "checkbox1" },
                        MINI : { controller: make('BUTTON'), target: 'MINI', type: "checkbox1" },
                        Mitsubishi : { controller: make('BUTTON'), target: 'Mitsubishi', type: "checkbox1" },
                        Nissan : { controller: make('BUTTON'), target: 'Nissan', type: "checkbox1" },
                        Pagani : { controller: make('BUTTON'), target: 'Pagani', type: "checkbox1" },
                        Peugeot : { controller: make('BUTTON'), target: 'Peugeot', type: "checkbox1" },
                        Porsche : { controller: make('BUTTON'), target: 'Porsche', type: "checkbox1" },
                        Ram : { controller: make('BUTTON'), target: 'Ram', type: "checkbox1" },
                        "Rolls-Royce" : { controller: make('BUTTON'), target: 'Rolls-Royce', type: "checkbox1" },
                        Scion : { controller: make('BUTTON'), target: 'Scion', type: "checkbox1" },
                        Smart : { controller: make('BUTTON'), target: 'Smart', type: "checkbox1" },
                        Subaru : { controller: make('BUTTON'), target: 'Subaru', type: "checkbox1" },
                        Toyota : { controller: make('BUTTON'), target: 'Toyota', type: "checkbox1" },
                        Volkswagen : { controller: make('BUTTON'), target: 'Volkswagen', type: "checkbox1" },
                        Volvo : { controller: make('BUTTON'), target: 'Volvo', type: "checkbox1" }
                    },
                    p3: {
                        node: p3, options: {radio: true},
                    },
                    p4: {
                        node: p4, options: {radio: false},
                    },
                    p5: {
                        node: p5, options: {radio: true},
                    },
                    p6: {
                        node: p6, options: {radio: true},
                        SUBMIT : { controller: make('BUTTON'), target: 'submit', type: "submit" },
                    }
                };
        } else {
            var panel = {
                    p1: {
                        node: p1, options: {radio: true},
                        goods :    { controller: make('BUTTON'), target: 'GOODS', type: "radio" },
                        services : { controller: make('BUTTON'), target: 'SERVICES', type: "radio" },
                        both :     { controller: make('BUTTON'), target: 'BOTH', type: "radio" },
                    },
                    p2: {
                        node: p2, options: {radio: true},
                        provider : { controller: make('BUTTON'), target: 'DIRECT_PROVIDER', type: "radio" },
                        retailer : { controller: make('BUTTON'), target: 'RETAILER', type: "radio" },
                        referral : { controller: make('BUTTON'), target: 'REFERRAL_AGGREGATOR', type: "radio" },
                        search :   { controller: make('BUTTON'), target: 'SEARCH_ENGINE', type: "radio" },
                        market :   { controller: make('BUTTON'), target: 'MARKETPLACE', type: "radio" },
                        deals :    { controller: make('BUTTON'), target: 'DEALS_PROVIDER', type: "radio" },
                        content :  { controller: make('BUTTON'), target: 'CONTENT_PUBLISHER', type: "radio" },
                    },
                    p3: {
                        node: p3, options: {radio: true},
                        physnone :           { controller: make('BUTTON'), target: 'NONE', type: "radio" },
                        single :             { controller: make('BUTTON'), target: 'LOCAL_SINGLETON', type: "radio" },
                        singleRegionBranch : { controller: make('button'), target: 'SINGLE_REGION_BRANCHES', type: "radio" },
                        multiRegionBranch :  { controller: make('button'), target: 'MULTIPLE_REGION_BRANCHES', type: "radio" },
                    },
                    p4: {
                        node: p4, options: {radio: false},
                        virtual: { controller: make('button'), target: 'VIRTUAL', type: "checkbox" },
                        custLoc: { controller: make('button'), target: 'CUSTOMER_LOCATION', type: "checkbox" },
                        busiLoc: { controller: make('button'), target: 'BUSINESS_LOCATION', type: "checkbox" },
                        notApp: { controller: make('button'), target: 'NOT_APPLICABLE', type: "checkbox" },
                    },
                    p5: {
                        node: p5, options: {radio: true},
                        direct :     { controller: make('BUTTON'), target: 'DIRECT', type: "radio" },
                        both   :     { controller: make('BUTTON'), target: 'radio_16', type: "radioID" },
                        indirect :   { controller: make('BUTTON'), target: 'INDIRECT', type: "radio" },
                    },
                    p6: {
                        node: p6, options: {radio: true},
                        SUBMIT : { controller: make('BUTTON'), target: 'submit', type: "submit" },
                    }
                };
        }
        div.style.cssText = "z-index:10; position:fixed; top:10%;right:50%; background:#eee; opacity:0.9; transform:translateX(50%);";
        div.className = 'zoltarpanel';

        var css = document.head.appendChild(document.createElement('STYLE'));
        css.innerHTML = '.zoltarpanel p {margin:5px}';

        function sel(group, item) {
            item.controller.onclick = () => {
                var prev = group.node.querySelector('[style]');
                if (prev && group.options.radio == true) prev.style.background = '';
                if (item.type=="radio") get(item.target).click();
                else if (item.type=="checkbox") get2(item.target).click();
                else if (item.type=="checkbox1") {
                    get("YES").click();
                    get3(item.target).click();
                } else if (item.type=="radioID") getID(item.target).click();
                else if (item.type=="submit") document.querySelector('input[type=submit]').click();
                if (group.options.radio == false) item.controller.style.background = (item.controller.style.background.indexOf('lightgreen') != -1) ? '' : 'lightgreen';
                else item.controller.style.background = 'lightgreen';
                if (item.type=="radio") scroller(get(item.target));
                else if (item.type=="checkbox") scroller(get2(item.target));
                else if (item.type=="checkbox1") scroller(get3(item.target));
                else if (item.type=="radioID") scroller(getID(item.target));
                else if (item.type=="submit") scroller(document.querySelector('input[type=submit]'));
            };
        }
        function scroller(loc, dt) {
            var getPos = function(el) { var offset = 0; while(el) { offset += el.offsetTop; el = el.offsetParent; } return offset; },
                target = getPos(loc),
                pos = window.scrollY,
                dpos = Math.ceil((target-pos)/3);
            dt = dt ? dt-1 : 25;
            if (target === pos || dpos === 0 || dt === 0) return;
            window.scrollBy(0,dpos);
            setTimeout( () => scroller(loc, dt), dt);
        }

        for (var j of Object.keys(panel)) {
            for (var k of Object.keys(panel[j])) {
                if (k === 'node' || k === 'options') continue;
                panel[j].node.appendChild(panel[j][k].controller);
                panel[j][k].controller.textContent = k;
                sel(panel[j], panel[j][k]);
            }
        }
    }, 903);
})();
Still don't like them with that
 
Status
Not open for further replies.