[
  {
    "path": "README.md",
    "content": "\n## GitAds Sponsored\n[![Sponsored by GitAds](https://gitads.dev/v1/ad-serve?source=kleampa/not-paid@github)](https://gitads.dev/v1/ad-track?source=kleampa/not-paid@github)\n\n## Client did not pay?\n\nAdd opacity to the body tag and decrease it every day until their site completely fades away. Set a due date and customize the number of days you offer them until the website is fully vanished. \n\n\n```javascript\n/* change these variables as you wish */\nvar due_date = new Date('2017-02-27');\nvar days_deadline = 60;\n/* stop changing here */\n```\n\nPS: Next time use [letsdeel.com](https://letsdeel.com ) to make sure you get paid.\n\n## Usage\nJust load the not-paid.js file in ```<head>```\n\n- A Wordpress plugin is also available [here](https://github.com/SurfEdge/not-paid-wp).\n- There's also an Android version available [here](https://github.com/theapache64/faded).\n- There's also an Windows Forms version available [here](https://github.com/g-otn/winforms-not-paid).\n- Flutter version available [here](https://github.com/krishnakumarcn/faded).\n- iOS (SwiftUI) version available [here](https://github.com/vfrascello/not-paid-ios/).\n- Angular version available [here](https://github.com/CleitonJB/not-paid).\n\n## Author\n\nInspired from twitter (@riklomas)\nMade by Ciprian (@kleampa), Romania\n\nPS: No PR's or issues will be accepted for this project. \n\n<!-- GitAds-Verify: J1PG87O5DM3EJV4I2VOCWVLO3FI2XVDI -->\n\n\n"
  },
  {
    "path": "not-paid.js",
    "content": "// Next time use letsdeel.com to make sure you get paid\n(function(){\n\t/* change these variables as you wish */\n\tvar due_date = new Date('2017-02-27');\n\tvar days_deadline = 60;\n\t/* stop changing here */\n\t\n\tvar current_date = new Date();\n\tvar utc1 = Date.UTC(due_date.getFullYear(), due_date.getMonth(), due_date.getDate());\n\tvar utc2 = Date.UTC(current_date.getFullYear(), current_date.getMonth(), current_date.getDate());\n\tvar days = Math.floor((utc2 - utc1) / (1000 * 60 * 60 * 24));\n\t\n\tif(days > 0) {\n\t\tvar days_late = days_deadline-days;\n\t\tvar opacity = (days_late*100/days_deadline)/100;\n\t\t\topacity = (opacity < 0) ? 0 : opacity;\n\t\t\topacity = (opacity > 1) ? 1 : opacity;\n\t\tif(opacity >= 0 && opacity <= 1) {\n\t\t\tdocument.getElementsByTagName(\"BODY\")[0].style.opacity = opacity;\n\t\t}\n\t\t\n\t}\n\t\n})()\n"
  }
]