We got it now yay! set up ya alert like this and it should be good
<div class="alert alert-default">
Sup motherfucker I'm an alert and I'm here to fuck up your life
</div>Other styles are available in the framework aside from .alert-default
These are valid color classes for your boi
.alert-primary.alert-secondary.alert-accent.alert-neutral.alert-error.alert-caution.alert-success
.alert supports sizes by adding alert-large or alert-small to its classes
Elements with this attribute looks for an alert to close
Offsets an element inside .alert to the top right side as if it where the close button for our boi
Combine both so you can do magical things <3
This one looks for the href of the boi
<a href="#bitch-alert" class="btn btn-default" data-toggle-alert-close>Close Alert</a>
<div class="alert alert-error" id="bitch-alert">
<!-- Close butt -->
I have a close button suck my dick
</div>This one looks for the data-href of the boi
<span data-href="#bitch-alert" class="btn btn-default" data-toggle-alert-close
>Close Alert</span
>
<div class="alert alert-error" id="bitch-alert">
<!-- Close butt -->
I have a close button suck my dick
</div>This one looks for the .alert ancestor and it's a close symbol because it looks cuter and also using .alert-close
<div class="alert alert-error" id="bitch-alert">
<!-- Close butt -->
<a href="#bitch-alert" class="alert-close" data-toggle-alert-close
><i class="symbol symbol-close"></i
></a>
I have a close button suck my dick
</div>Like modules this bitch can have a header and footer and other shiit too
This is where you put alert-contents. The block stretches to 1fr by default so flexing content is possible.
<div class="alert">
<div class="alert-content">Hi I'm content</div>
</div>Duh
<div class="alert">
<div class="alert-header">Hi I'm header</div>
<div class="alert-content">Hi I'm content</div>
<div class="alert-footer">Hi I'm footer</div>
</div>Typically placed in the .alert-header. It's used to title your alert
Well what if there's too many notifications and the user is too overwhelmed by the amount and you wanna give them the ability to close all them alerty bois?
Set this data attribute to a bitch up no href or data-href required... it just.. destroys eveRYTHING
<a href="#bitch-alert" class="btn btn-default" data-toggle-alert-close-all
>Clear Notifications... good lord this is too much</a
>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>fixed container on the viewport so ur alerts look like a toaster boi or some shit
<html>
<body>
<div class="alert-container alert-top alert-left">
<div class="alert alert-error" id="bitch-alert">ALERT! HAHAHAHAHAHAH</div>
</div>
</body>
</html>These are valid offset classes for your boi
.alert-container-top.alert-container-left.alert-container-right.alert-container-left
it has some but just for the functionality of closing them
Make a new boi by going const alert = new fw.Alert(element)
useful when you need to close this alert
duh
element is the element triggered. if left blank, this defaults to the element attached to the instance
run if you wanna close it all
initializes all event listeners
click_fw_alert- happens ontriggererbefore_close_fw_alert- happens onelementbefore closingclose_fw_alert- happens onelementwhen closingafter_close_fw_alert- happens onelementafter closing


