-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is the website? #159
Comments
@aleabodo i dont knw wht happen't to the site, but you should use achive.org ;) |
Here it is:alertify.jsSimple browser dialogs v1.0.10Alertify.js is a small library which provides light-weight, high performance browser dialogs. Since it uses only 1 HTTP request and a payload of less than 3kB, it's a great option for adding basic style to alert, dialog, prompt and log messages even on low bandwidth connections. Getting StartedNotesWe're working to get the latest version on all major public CDN's but until then, you'll need to either use a GitHub raw service, download it, or install via NPM or Bower. Obviously, if you're installing via Bower or NPM, you'll need to include the files in the "dist" directory in your HTML for everything to work. But you knew that already. It's also worth noting that the CSS is bundled by default, so there's no need to include any stylesheets to use the default theme. It's dyamically inserted before any other elements (like) stylesheets so it's super easy to override with your own styles. Via RawGit
Via Bower
Via NPM
Disabling CSS InjectionIf you don't want to inject CSS for some reason, just insert your own styles (any style or link element with an id of alertifyCSS) before the javascript file: <script src="/path/to/alertify.js"></script>AngularJSAn AngularJS module is also included. It's in the "ngAlertify.js" file, so use that instead if you're building an AngularJS app. If you want to check out a live demo of log messages with ngAlertify, click here. Initialize ngAlertify
PerformanceAlertify is designed from the ground-up for great performance and a small footprint. That means it's not as feature-rich as some other options. That's on purpose. We don't plan on adding a lot more features so it stays a great option for every kind of website and user. Currently, the entire library, with JavaScript and CSS is ~2.29 kB (gzipped), and getting smaller all the time. That's quite impressive considering it's only a single HTTP request, and no external dependencies at all being required. The Angular module is only 2.32kB, so that's light, too! UsageDialogsAlert DialogDialogs display a text and require user to acknowledge the message. Try It Code Example
Confirm DialogTry It Code Example
Prompt DialogTry It Code Example
Custom LabelsYou're not limited to the "Ok" and "Cancel" button labels. You can easily set your own labels. Try It Code Example
Ajax - Multiple DialogTry It Code Example
Promise AwareIf your browser supports promises, you can use them instead of callbacks Try It Code Example
Log MessagesSetting the PositionTry It Code Example
Setting the parent elementYou can set where parent element where Alertify is appended into the DOM. Code Example// By default, Alertify is appended to document.body. Standard LogTry It Code Example
Standard Log With HTMLHTML works just fine in log messages. Have at it! Try It Code Example
Standard Log with callbackKeep in mind that the when setting a callback, clicking the log message doesn't automatically close the log message, which is different than previous functionality. This means that the callback could be called multiple times if the user clicks multiple times. If you're callback is an action that must be completed only once, you'll need to keep track of that separately. Try It Code Example
Success LogTry It Code Example
Success Log with callbackTry It Code Example
Error LogTry It Code Example
Error Log with callbackTry It Code Example
Closing Log On ClickTry It Code Example
Disable Log On ClickClicking on a log message to close is disabled by default, but if you've enabled it and need to reset it to disabled, you can do so very easily. The decision to disable it by default was to allow any type of html to be included in the log messages, including links. Try It Code Example
Hide in 10 secondsTry It Code Example
Persistent LogPersistent log messages will stay until clicked (if closeLogOnClick(true) is set) or until forcibly removed when the number of messages exceeds the maxLogItems setting. Try It Code Example
Maximum Number of Log MessagesYou can easily set the maximum number of log/success/error messages that will be displayed at a single time. The default is two. Try It Code Example
Setting a template for logsYou can change the template for all logs. Try It Code Example
Other OptionsResetting Default ValuesWhen you change values like the button labels, delays, default prompt values or placeholders, etc., you can easily reset the defaults. Try It Code Example
|
I've been needing to see live examples that the site had before it went down so I grabbed the website folder from the repo, updated the links and threw it on my server. Hope it helps! |
Rawgit reaches actual end of life in October, so also, an alternative CDN solution would really be an important move to make for the website / documentation. Rawgit's suggestion of jsdelivr seems like the most appropriate choice for now. https://cdn.jsdelivr.net/gh/alertifyjs/alertify.js@v1.0.10/dist/js/alertify.js |
That's why I believe GH Pages is there for that and project websites should be hosted nowhere else... @dshastry your mirror has gone too? |
@jesobreira You should probably switch away from this project as it is unmaintained... a website is not needed at this point |
I have a huge legacy codebase that uses this lib... To be honest, it's a better option for me if I keep giving this library the maintenance and attention it deserves, but I'd like to check how the old maintainers would see it first... I could get the website at Web Archive and host it in GH Pages but as the footer states, it's a copyrighted work... |
@jesobreira : http://davidshastry.com/dev/alertify/ Sorry moved webhosts to URL changed. |
https://alertifyjs.org is gone. Yesterday the package disappeared in npmjs.com (Today back again). Is this package still supported and are we going to have the documentation back?
The text was updated successfully, but these errors were encountered: