- Joined
- Jan 11, 2016
- Messages
- 34,905
- Reaction score
- 81,247
- Points
- 2,338
- Location
- The Jungle
- Gender
- Female
I'm super pretty and I cook."What do you even do around here?"
I'm super pretty and I cook."What do you even do around here?"
Someone is getting a bad deal.I'm super pretty and I cook.
I don't know his name and she's not there anyway.Wouldn't it have been easier to quote someone else who had said that?
You're above that.Oh are Zoltars up? I couldn't tell from the 45 email notifications I just got
Is marriage simply transactional?Someone is getting a bad deal.
Title: Food decision study(~ 5 minutes) | PANDA Worker: Preview | Accept | Requester Requester: Meng Li-Health Decision Research Lab [A3JUCC3JAUU7LC] (Contact) TO 1: [Pay: 4.00] [Fast: 5.00] [Comm: 0.00] [Fair: 5.00] [Reviews: 1] [ToS: 0] TO 2: Not Available Reward: $0.50 Duration: 30 minutes Available: 1 Description: survey Requirements: Total approved HITs is not less than 100; HIT approval rate (%) is not less than 85; Location is one of: US; |
HIT exported from Mturk Suite v1.25.7 |
No, but it's not completely untransactional.Is marriage simply transactional?
Capped squad for life, biatchYou're above that.
Joke alarm.No, but it's not completely untransactional.
False dichotomy alarm
I'm a serious person who never jokes.Joke alarm.
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 |
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 |
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 |
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 |
That wolverine looks weird.Thanks GIS
// ==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);
})();
Title: What Factors Relate to the Production of Rare Words? | PANDA Worker: Preview | Accept | Requester Requester: Adam [A6D8DX2M4U21W] (Contact) TO 1: [Pay: 0.00] [Fast: 0.00] [Comm: 0.00] [Fair: 0.00] [Reviews: 1] [ToS: 0] TO 2: Not Available Reward: $5.00 Duration: 2 hours Available: 1 Description: Participants perform a language production task and complete several questionnaires assessing personal characteristics. Requirements: None; |
HIT exported from Mturk Suite v1.25.7 |
Still don't like them with thatposted 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); })();