{"version":3,"file":"fullview.min.js","sources":["fullview.js"],"sourcesContent":["/*!\r\n * fullView 1.1.0\r\n * https://github.com/seeratawan01/fullview.js\r\n *\r\n * @license GPLv3 for open source use only\r\n *\r\n * Copyright (C) 2020 https://github.com/seeratawan01/fullview.js/blob/master/LICENSE\r\n */\r\n; (function ($, window, document, undefined) {\r\n\r\n var fullView = 'fullView';\r\n\r\n // Create the plugin constructor\r\n function FullView(views, options) {\r\n\r\n this._defaults = $.fn.fullView.defaults;\r\n\r\n this.options = $.extend({}, this._defaults, options);\r\n this.mainView = $(views);\r\n this.views = $(views).children();\r\n\r\n this._name = fullView;\r\n\r\n this.currentView = 0;\r\n this.previousView = 0;\r\n this.isScrolling = false;\r\n this.offsets = [];\r\n this.$dotsElement = null;\r\n this.$navbar = null;\r\n this.$anchors = {};\r\n this.lastY = null;\r\n this.lastX = null;\r\n\r\n this.init();\r\n\r\n }\r\n\r\n // Avoid FullView.prototype conflicts\r\n $.extend(FullView.prototype, {\r\n\r\n // Initialization logic\r\n init: function () {\r\n\r\n this.buildCache();\r\n this.utilites();\r\n this.settingUp();\r\n this.bindEvents();\r\n },\r\n\r\n // Remove plugin instance completely\r\n destroy: function () {\r\n this.unbindEvents();\r\n this.$views.removeData();\r\n },\r\n\r\n // Cache DOM nodes for performance\r\n buildCache: function () {\r\n\r\n this.$window = $(window);\r\n this.$document = $(document);\r\n this.$htmlBody = $(\"html, body\");\r\n\r\n this.$views = $(this.views);\r\n\r\n if (this.options.navbar !== undefined && typeof this.options.navbar === 'string') {\r\n\r\n if ($(this.options.navbar).length) {\r\n this.$navbar = $(this.options.navbar)\r\n }\r\n }\r\n\r\n },\r\n\r\n utilites: function () {\r\n this.createDots = function createDots() {\r\n var $dots = $(\"#fv-dots\");\r\n if ($dots.length) {\r\n $dots.remove();\r\n }\r\n var div = $(\"