Plugin Directory

Changeset 3262449


Ignore:
Timestamp:
03/26/2025 10:05:44 PM (11 months ago)
Author:
caseyak
Message:

Updates for 1.1.0

Location:
caseyak/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • caseyak/trunk/README.txt

    r3065572 r3262449  
    66Tested up to: 6.4.3
    77Requires PHP: 7.0
    8 Stable tag: 1.0.0
     8Stable tag: 1.1.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1616Predict Motor Vechicle Accident case values on your WordPress website using the CaseYak AI case value calculator. Automate your intake and receive leads in real time. Available in Spanish and customizable to your website's branding. CaseYak subscription required.
    1717
    18 This plugin uses the CaseYak AI service (aka a "3rd party service") to load the questionnaire onto your WordPress intance. When a user submits their information on the CaseYak questionnaire, it then calls our service to receive an estimated case value using the provided data.
     18This plugin uses the CaseYak AI service (aka a "3rd party service") to load the questionnaire onto your WordPress instance. When a user submits their information on the CaseYak questionnaire, it then calls our service to receive an estimated case value using the provided data.
    1919
    2020These services are called as part of the caseyak plugin:
     
    6262* Initial launch of stable version
    6363
     64= 1.1.0 =
     65* Updates to support latest chat version
     66
    6467== Upgrade Notice ==
    6568
    6669= 1.0 =
    6770* Initial launch of stable version
     71
     72= 1.1.0 =
     73* Updates to support latest chat version
  • caseyak/trunk/public/css/caseyak-public.css

    r3065572 r3262449  
    2525#yakWidget-inner-111 {
    2626    display: inline-block;
    27     width: 220px;
     27    width: 280px;
    2828    background-color: #fff;
    2929    border-radius: 0.625rem;
     
    3232
    3333#yakPowered-111 {
    34     right: 2px;
    35     max-height: 25px;
    36     height: 6%;
    37     font-size: 0.75em;
     34    height: 20px;
     35    font-size: 0.65em;
    3836    text-align: right;
     37    padding:5px;
    3938}
    4039
     
    7271    z-index: 2147483648;
    7372    overflow: auto;
    74     padding: 6px 0 6px 6px;
    7573    width: 340px;
    7674    height: 520px;
     
    149147    height: 40px;
    150148    border: 6px solid #f3f3f3;
    151     border-top: 6px solid #00d1b2;
     149    border-top: 6px solid lightslategray;
    152150    border-radius: 50%;
    153151    -webkit-animation: spin 2s linear infinite;
  • caseyak/trunk/public/js/mva.js

    r3065572 r3262449  
    13981398  const shouldSkipBubble = skipBubble == 'true' ? true : false; // allows us to pass in a language when the yak bubble is not there
    13991399
    1400   const yakLanguage = currentScript.getAttribute('yak-language') || 'english'; // pass in the referrer ID for ad tracking
     1400  const yakLanguage = currentScript.getAttribute('yak-language') || 'english'; // pass in the referrer ID & keyword for ad tracking
    14011401
    14021402  const rid = new URLSearchParams(window.location.search).get('refid');
    1403   const refid = rid || 'direct'; // allows us to embed the iframe in another context, not just a plugin
     1403  const refid = rid || 'direct';
     1404  const keyw = new URLSearchParams(window.location.search).get('keyword');
     1405  const keyword = keyw || ''; // allows us to embed the iframe in another context, not just a plugin
    14041406
    14051407  const isExpanded = currentScript.getAttribute('expanded') || false;
     
    14271429    cssLink.rel = 'stylesheet';
    14281430    const rando = new Date().getTime();
     1431    cssLink.setAttribute('href', 'https://caseyak.com/assets/css/mva.css?v=' + rando);
    14291432    document.getElementsByTagName('head')[0].appendChild(cssLink);
    1430     var bubbleText = "Injured in a motor vehicle accident? Click here to tell us more.";
     1433    var bubbleText = "Injured in a motor vehicle accident? Click here to find out what your case might be worth.";
    14311434
    14321435    if (languages.includes("spanish")) {
     
    14371440   <div id="yakWidget-inner-111">
    14381441       <div id="yakText-111">
    1439            <a id="yakBubbleClose-111"><div style="margin-top:-2px" id="yak-bubble-close-x">x</div></a>
     1442           <a id="yakBubbleClose-111"><div style="margin-top:-1px;font-size:.9em" id="yak-bubble-close-x">x</div></a>
    14401443           <p id="yakTop-text-111">${bubbleText}</p>
    14411444       </div>
     
    14431446   `;
    14441447
    1445     if (slidePosition == 'left') {
    1446       widgetHtml = `<div id="yakImage-111"></div>` + widgetHtml;
    1447     } else {
    1448       widgetHtml = widgetHtml + `<div id="yakImage-111"></div>`;
    1449     }
    1450 
    14511448    var containerHtml = `
    1452    <div id="yakFormHeader-111">
     1449   <div id="yakFormHeader-111" style="position:absolute">
    14531450       <a id="yakFormHeaderClose-111"><div style="margin-top:-2px">x</div></a>
    14541451   </div>
    14551452   <div id="yak-loader"></div>
    1456    <iframe style="width:100%;height:92%;border:none;margin-top:-30px;" id="yakForm-111"></iframe>
    1457    <div id='yakPowered-111'>
    1458      <a style='color:black;text-decoration: none' target='_blank' href='https://www.caseyak.com'> <span id='yakPoweredText-111'></span></a>
    1459    </div>
     1453   <iframe style="width:100%;height:100%;min-height:500px;border:none;" id="yakForm-111"></iframe>
    14601454   `; // create slide out bubble
    14611455
     
    15061500    cssLink.rel = 'stylesheet';
    15071501    const rando = new Date().getTime();
     1502    cssLink.setAttribute('href', 'https://caseyak.com/assets/css/mva.css?v=' + rando);
    15081503    document.getElementsByTagName('head')[0].appendChild(cssLink);
    15091504    var containerHtml = `
    15101505   <div id="yak-loader"></div>
    1511    <iframe style="width:100%;min-height:500px;border:none;margin-top:10px;" id="yakForm-111"></iframe>
    1512    <div id='yakPowered-111'>
    1513      <a style='text-decoration:none;color:#00d1b2' target='_blank' href='https://www.caseyak.com'> <span id='yakPoweredText-111'> </span><span> CaseYak</span>
    1514    </div>
     1506   <iframe style="width:100%;height:100%;min-height:500px;border:none;" id="yakForm-111"></iframe>
    15151507   `;
    15161508    const existingContainerElement = document.getElementById(embeddedParentEl);
     
    15381530    if (slidePosition == 'left') {
    15391531      yakWidget.style.left = '-500px';
    1540       document.getElementById('yakContainer-111').style.left = isCondensed ? '0px' : '10px';
    15411532    } else {
    15421533      yakWidget.style.right = '-500px';
    1543       document.getElementById('yakContainer-111').style.right = isCondensed ? '0px' : '10px';
    15441534    }
    15451535
     
    15831573    if (refid) {
    15841574      url = url + "&refid=" + refid;
     1575    }
     1576
     1577    if (keyword && keyword != '') {
     1578      url = url + "&keyword=" + keyword;
     1579    }
     1580
     1581    if(!shouldExpand) {
     1582      url = url + "&isCondensed=1";
    15851583    }
    15861584
Note: See TracChangeset for help on using the changeset viewer.