From 0ee595b38f39af91a65d5541c59af41c45f7ef8e Mon Sep 17 00:00:00 2001 From: Eslyium Date: Wed, 16 Sep 2020 19:52:50 -0400 Subject: [PATCH] Warning Pop-up - Issue #6 --- index.php | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 3d810e3..8742f03 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ "> - + - +
The content of unapproved repositories has not been vetted by QA
Safety is not guaranteed. Use at your own risk
- +
- + href="?filter=&ua=0"show-model="uadisclaim"> @@ -100,6 +100,12 @@ $cog_chunks = array_chunk($cogs, $per_page); Include Unapproved
+
+ + Warning: Use at your own risk! + Unapproved repositories are provided by the community and have not been inspected for security or tested for stability. The author of Red and contributors are not responsible for and damage caused by 3rd party cogs. + +
There are no cogs on this page.
@@ -162,6 +168,12 @@ $cog_chunks = array_chunk($cogs, $per_page); window.location.href = $(this).attr('href'); }); $('.submit').click(function(){ $('#search').submit();}); + $('[show-model]').click(function(){ + $('body').attr('model', $(this).attr('show-model')); + }); + $('[hide-model]').click(function(){ + $('body').attr('model', ''); + }); });