Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Bump to version 1.0.3
Browse files Browse the repository at this point in the history
1. Fix scoring of quizzes
  • Loading branch information
Aaron Huisinga committed May 3, 2017
1 parent fab6ad5 commit ce36a7e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ jQuery(function ($) {

setTimeout(function () {
$('#quiz-results').modal('hide');
$('#offer').html('<h2 class="quiz-completed"><i class="fa fa-check-circle"></i> <br> <strong>You scored ' + response.score + '/88</strong><br><small>' + response.feedback + '</small></h2>');
$('#offer').html('<h2 class="quiz-completed"><i class="fa fa-check-circle"></i> <br> <strong>You scored ' + response.score + '/100</strong><br><small>' + response.feedback + '</small></h2>');
if (typeof $('#valuator-link').val() != 'undefined') {
$('#offer').html('<h2 class="quiz-completed"><i class="fa fa-check-circle"></i> <br> <strong>You scored ' + response.score + '/88</strong><br><small>' + response.feedback + '</small></h2> <a href="' + $('#valuator-link').val() + '" class="btn btn-primary btn-lg" id="show-offer">Click Here To See What Your Home Is Worth <br> <small>(Based On Official Data of Recently Sold Listings In Your Area)</small></a>');
$('#offer').html('<h2 class="quiz-completed"><i class="fa fa-check-circle"></i> <br> <strong>You scored ' + response.score + '/100</strong><br><small>' + response.feedback + '</small></h2> <a href="' + $('#valuator-link').val() + '" class="btn btn-primary btn-lg" id="show-offer">Click Here To See What Your Home Is Worth <br> <small>(Based On Official Data of Recently Sold Listings In Your Area)</small></a>');
}
$('.quiz-page').animate({'padding-top': '6%'}, 500);

Expand Down Expand Up @@ -224,9 +224,9 @@ jQuery(function ($) {
$('#quiz-back').hide();

setTimeout(function () {
$('#offer').html('<h2 class="quiz-completed"><i class="fa fa-check-circle"></i> <br> <strong>You scored ' + response.score + '/88</strong><br><small>' + response.feedback + '</small></h2>');
$('#offer').html('<h2 class="quiz-completed"><i class="fa fa-check-circle"></i> <br> <strong>You scored ' + response.score + '/100</strong><br><small>' + response.feedback + '</small></h2>');
if (typeof $('#valuator-link').val() != 'undefined') {
$('#offer').html('<h2 class="quiz-completed"><i class="fa fa-check-circle"></i> <br> <strong>You scored ' + response.score + '/88</strong><br><small>' + response.feedback + '</small></h2> <a href="' + $('#valuator-link').val() + '" class="btn btn-primary btn-lg" id="show-offer">Click Here To See What Your Home Is Worth <br> <small>(Based On Official Data of Recently Sold Listings In Your Area)</small></a>');
$('#offer').html('<h2 class="quiz-completed"><i class="fa fa-check-circle"></i> <br> <strong>You scored ' + response.score + '/100</strong><br><small>' + response.feedback + '</small></h2> <a href="' + $('#valuator-link').val() + '" class="btn btn-primary btn-lg" id="show-offer">Click Here To See What Your Home Is Worth <br> <small>(Based On Official Data of Recently Sold Listings In Your Area)</small></a>');
}
$('.quiz-page').animate({'padding-top': '6%'}, 500);

Expand Down
4 changes: 2 additions & 2 deletions chiro-quiz.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
* Plugin Name: Chiropractic Quiz
* Version: 1.0.2
* Version: 1.0.3
* Plugin URI: https://platform.marketing/
* Description: Simple chiropractic lead generation through a quiz that helps qualify prospective patients.
* Author: Platform Marketing
Expand All @@ -20,7 +20,7 @@
define( 'CHIRO_QUIZ_PLUGIN_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );

if ( ! defined( 'CHIRO_QUIZ_PLUGIN_VERSION' ) )
define( 'CHIRO_QUIZ_PLUGIN_VERSION', '1.0.2' );
define( 'CHIRO_QUIZ_PLUGIN_VERSION', '1.0.3' );

require_once( 'classes/class-chiro-quiz.php' );

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Aaron Huisinga
Tags: chiropractic, platform, chiro quiz
Requires at least: 4.0
Tested up to: 4.7.4
Stable tag: 1.0.2
Stable tag: 1.0.3

Simple chiropractic lead generation through a quiz that helps qualify prospective patients.

Expand Down
2 changes: 1 addition & 1 deletion templates/single-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
<tr>
<td align="center" valign="top" class="bodyContent" style="padding: 10px 30px 0;font-family: Verdana, Arial, Helvetica, sans-serif;text-align: left;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #3A3A3A;font-size: 16px;font-weight: normal;line-height: 169%;-webkit-font-smoothing: antialiased;">
<span class="notlook">
<p><strong>Quiz Score:</strong> <?= $score ?>/88</p>
<p><strong>Quiz Score:</strong> <?= $score ?>/100</p>
<?php foreach ($responses as $response) { ?>
<p>
<strong><?= $response['question'] ?></strong><br>
Expand Down

0 comments on commit ce36a7e

Please sign in to comment.