Changeset 3262449
- Timestamp:
- 03/26/2025 10:05:44 PM (11 months ago)
- Location:
- caseyak/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (3 diffs)
-
public/css/caseyak-public.css (modified) (4 diffs)
-
public/js/mva.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
caseyak/trunk/README.txt
r3065572 r3262449 6 6 Tested up to: 6.4.3 7 7 Requires PHP: 7.0 8 Stable tag: 1. 0.08 Stable tag: 1.1.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 16 16 Predict 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. 17 17 18 This plugin uses the CaseYak AI service (aka a "3rd party service") to load the questionnaire onto your WordPress in tance. 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.18 This 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. 19 19 20 20 These services are called as part of the caseyak plugin: … … 62 62 * Initial launch of stable version 63 63 64 = 1.1.0 = 65 * Updates to support latest chat version 66 64 67 == Upgrade Notice == 65 68 66 69 = 1.0 = 67 70 * 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 25 25 #yakWidget-inner-111 { 26 26 display: inline-block; 27 width: 2 20px;27 width: 280px; 28 28 background-color: #fff; 29 29 border-radius: 0.625rem; … … 32 32 33 33 #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; 38 36 text-align: right; 37 padding:5px; 39 38 } 40 39 … … 72 71 z-index: 2147483648; 73 72 overflow: auto; 74 padding: 6px 0 6px 6px;75 73 width: 340px; 76 74 height: 520px; … … 149 147 height: 40px; 150 148 border: 6px solid #f3f3f3; 151 border-top: 6px solid #00d1b2;149 border-top: 6px solid lightslategray; 152 150 border-radius: 50%; 153 151 -webkit-animation: spin 2s linear infinite; -
caseyak/trunk/public/js/mva.js
r3065572 r3262449 1398 1398 const shouldSkipBubble = skipBubble == 'true' ? true : false; // allows us to pass in a language when the yak bubble is not there 1399 1399 1400 const yakLanguage = currentScript.getAttribute('yak-language') || 'english'; // pass in the referrer ID for ad tracking1400 const yakLanguage = currentScript.getAttribute('yak-language') || 'english'; // pass in the referrer ID & keyword for ad tracking 1401 1401 1402 1402 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 1404 1406 1405 1407 const isExpanded = currentScript.getAttribute('expanded') || false; … … 1427 1429 cssLink.rel = 'stylesheet'; 1428 1430 const rando = new Date().getTime(); 1431 cssLink.setAttribute('href', 'https://caseyak.com/assets/css/mva.css?v=' + rando); 1429 1432 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."; 1431 1434 1432 1435 if (languages.includes("spanish")) { … … 1437 1440 <div id="yakWidget-inner-111"> 1438 1441 <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> 1440 1443 <p id="yakTop-text-111">${bubbleText}</p> 1441 1444 </div> … … 1443 1446 `; 1444 1447 1445 if (slidePosition == 'left') {1446 widgetHtml = `<div id="yakImage-111"></div>` + widgetHtml;1447 } else {1448 widgetHtml = widgetHtml + `<div id="yakImage-111"></div>`;1449 }1450 1451 1448 var containerHtml = ` 1452 <div id="yakFormHeader-111" >1449 <div id="yakFormHeader-111" style="position:absolute"> 1453 1450 <a id="yakFormHeaderClose-111"><div style="margin-top:-2px">x</div></a> 1454 1451 </div> 1455 1452 <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> 1460 1454 `; // create slide out bubble 1461 1455 … … 1506 1500 cssLink.rel = 'stylesheet'; 1507 1501 const rando = new Date().getTime(); 1502 cssLink.setAttribute('href', 'https://caseyak.com/assets/css/mva.css?v=' + rando); 1508 1503 document.getElementsByTagName('head')[0].appendChild(cssLink); 1509 1504 var containerHtml = ` 1510 1505 <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> 1515 1507 `; 1516 1508 const existingContainerElement = document.getElementById(embeddedParentEl); … … 1538 1530 if (slidePosition == 'left') { 1539 1531 yakWidget.style.left = '-500px'; 1540 document.getElementById('yakContainer-111').style.left = isCondensed ? '0px' : '10px';1541 1532 } else { 1542 1533 yakWidget.style.right = '-500px'; 1543 document.getElementById('yakContainer-111').style.right = isCondensed ? '0px' : '10px';1544 1534 } 1545 1535 … … 1583 1573 if (refid) { 1584 1574 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"; 1585 1583 } 1586 1584
Note: See TracChangeset
for help on using the changeset viewer.