//!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
/*window.___gcfg = {lang: 'en'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();*/
var score = 0;
var step = 0;
var questions = [];
var result = 0;
var numberqs = 0;
var answers = [];
var talk = [];
var responsesYes = [];
var responsesNo = [];
var teams = [];
class Question {
constructor(question, yesAns, noAns, questionDesc) {
this.question = question;
this.yesAns = yesAns;
this.noAns = noAns;
this.questionDesc = questionDesc;
}
formatAnswer(answerList) {
if (answerList == null) {
return "";
}
let arrayOfAnswers = answerList;
let formattedAnswers = "";
arrayOfAnswers.forEach((answer, i) => {
if (i != arrayOfAnswers.length - 1) {
formattedAnswers = formattedAnswers + answer + "
";
} else {
formattedAnswers = formattedAnswers + answer;
}
});
return formattedAnswers;
}
formatDesc(descriptionList) {
if (descriptionList == null) {
return "";
}
let arrayOfDescriptions = descriptionList;
let formattedDescriptions = "";
arrayOfDescriptions.forEach((description, i) => {
formattedDescriptions = formattedDescriptions + description + " ";
});
return formattedDescriptions;
}
getYes() {
return this.formatAnswer(this.yesAns);
}
getNo() {
return this.formatAnswer(this.noAns);
}
getDesc() {
return this.formatDesc(this.questionDesc);
}
}
//to change the questions/answers for any questions change the text below q1,q2,q3,q4... are the number of the questions
//the structure of each question is this
//let q# = new Question( IGNORE THIS LINE
// "Question Goes Here", //the question which is asked
// [//the text displayed in the left hand side box
// "Left hand side text goes here",
// "Left hand side text goes here",
// ],
// [//the text displayed in the right hand side box
// "Left hand side text goes here",
// "Left hand side text goes here",
// ],
// [ //text under the question goes here
// "For Example: ",
// "Who decides what work is done?",
// "Who decides HOW the work is delivered?",
// "Who has control over changing what work is done?",
// ]
// );
// all text must be in quotes "" and be followed by a ,
// the left and right side text which is inside the [] brackets will be broken up based on where the commas are placed inside these brackets
//eg
// ["first bit of text","second bit of text","third bit of text"]
// will be displayed as
// first bit of text
//
// second bit of text
//
// third bit of text
//
//eg 2
// ["first bit of text second bit of text third bit of text"]
// will be displayed as
// first bit of text second bit of text third bit of text
// either method of writing in the text can be used for what is displayed under the question
//let contactFormUrl = "https://www.youtube.com/watch?v=PSrO55KS6VY"; //this is the link to Rullion Managed Teams contact form quotes around the url are required
//^link no longer used
let q1 = new Question(
"What problem are you trying to solve?",
[
"You have a clear project with a defined outcome.",
"You want a partner who has accountability for delivering all or part of that project.",
],
[
"You need more resource but don’t know exactly what you need them to do.",
"e.g. maternity cover, covering some internal movers or waiting on new perms.",
]
);
let q2 = new Question(
"How would you prefer this delivered?",
[
"You’re flexible. It can be remote, on-site or a hybrid. The most important thing is the outcomes get delivered.",
],
[
"You want to decide when and where the work is done. For example:
At your office Mon-Fri.
Defined working pattern.
You want to allocate tasks daily/weekly.",
]
);
let q3 = new Question(
"Who can carry out the work and who decides?",
[
"You are happy for Rullion to identify and select individuals who we trust to deliver for you.",
],
[
"You want to review CVs, interview people and make the final decision on who.",
]
);
let q4 = new Question(
"What level of control is required?",
[
"Rullion manage the workload and the team with little effort exerted by you. Your managers work alongside Rullion rather than increasing their direct reports.",
],
[
"You want your managers to directly manage individuals, increase the number of reports and treat them similarly to existing team members.",
]
);
let q5 = new Question(
"Is supervision required?",
[
"You’re able to agree milestones (per month) and for Rullion to provide delivery assurance to make sure the right progress is being made.",
],
[
"You want to supervise and oversee the work being done in real-time with individuals reporting direct to your managers.",
]
);
let q6 = new Question(
"Who will provide direction for the work?",
[
"You’re happy to provide regular feedback and allow Rullion to disperse this across the team.",
],
[
"You want to give directions and instructions directly to individuals as the work is being undertaken.",
]
);
let q7 = new Question(
"How would you prefer to pay?",
[
"Fixed Price where payment is made once an outcome is delivered and accepted by you.",
],
[
"Day Rate, where you simply pay for the number of days the individual(s) have completed, regardless of output.",
]
);
let questionList = [q1, q2, q3, q4, q5, q6, q7];
let a1 = new Question(
"Your recommended product is:
Outcome Based Delivery",
null,
null,
[
"If you would like to speak to the team about this product please use the contact form below.",
]
);
let a2 = new Question(
"Your recommended product is:
Managed Teams or Resource Augmentation",
null,
null,
[
"If you would like to speak to the team about this product please use the contact form below.",
]
);
function getLang() {
var userLang = navigator.language || navigator.userLanguage;
var lang = userLang.split("-");
if (lang[0] == "it") return "ita";
else return "eng";
}
function answer(res) {
if (res == "yes") {
score = score + 1;
next();
} else next();
}
function next() {
numberqs = questionList.length;
if (step == numberqs) {
result = 1;
$("#result").show();
if (score > 3) {
document.getElementById("resultTitle").innerHTML = a1.question;
document.getElementById("resultText").innerHTML = a1.getDesc();
} else {
document.getElementById("resultTitle").innerHTML = a2.question;
document.getElementById("resultText").innerHTML = a2.getDesc();
}
// document.getElementById("title").innerHTML = "Your recommended product is";
$("#btnRestart").show();
$("#title").show();
$("#question").hide();
$("#questionDesc").hide();
$("#ansYes").hide();
$("#ansNo").hide();
} else {
$("#question").html(questionList[step].question);
document.getElementById("questionDesc").innerHTML =
questionList[step].getDesc();
document.getElementById("ansYes").innerHTML = questionList[step].getYes();
document.getElementById("ansNo").innerHTML = questionList[step].getNo();
step++;
}
}
function start() {
$("#ansYes").show();
$("#ansNo").show();
$("#title").hide();
$("#btnStart").hide();
next();
}