# woo-additional-terms/1.5.2/assets/js/minified/script.js

Additional Terms Lite for WooCommerce, version 1.5.2. 1 lines.

- Page: https://pluginprobe.com/plugins/woo-additional-terms/1.5.2/code/assets/js/minified/script.js
- Raw: https://pluginprobe.com/plugins/woo-additional-terms/1.5.2/raw/assets/js/minified/script.js
- Modified: 2023-01-28T17:12:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woo-additional-terms/1.5.2/code/assets/js/minified/script.js#L10-L20`.

```javascript
"use strict";(function($){"use strict";var wat={cache:function cache(){this.vars={};this.els={};this.vars.selector="woo-additional-terms";this.vars.embed="".concat(this.vars.selector,"__link");this.vars.content="".concat(wat.vars.selector,"__content");this.vars.openClassName="".concat(this.vars.selector,"__link--open");this.vars.closeClassName="".concat(this.vars.selector,"__link--closed");this.vars.wrapper=".woocommerce-terms-and-conditions-wrapper.".concat(this.vars.selector)},init:function init(){this.cache();this.events()},events:function events(){$(document.body).on("click","a.".concat(this.vars.embed),this.handleEmbedToggle)},handleEmbedToggle:function handleEmbedToggle(event){event.preventDefault();var $this=$(this);var $wrapper=$this.closest(wat.vars.wrapper);var $content=$wrapper.find(".".concat(wat.vars.content));if($wrapper.length){$content.slideToggle(function(){if($content.is(":visible")){$this.addClass(wat.vars.openClassName);$this.removeClass(wat.vars.closeClassName)}else{$this.removeClass(wat.vars.openClassName);$this.addClass(wat.vars.closeClassName)}});return false}}};wat.init()})(jQuery);
```
