{% extends "admin/base_site.html" %} {% load i18n admin_urls django_pymissive_animations %} {% block title %}{{ title }}{% endblock %} {% block extrahead %} {{ block.super }} {% pymissive_animations_css %} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% translate "Shared settings" %}

{% translate "These settings apply to the custom preview and to every preset." %}

{% translate "Press Enter to add another message. Each send picks one at random, without changing how many are sent." %}
{% translate "Long text is fine: the lower area grows to fit it." %}
{% translate "View the integration code" %}

{% translate "Presets and code samples" %}

{% translate "These animations use the shared settings above. The title and subtitle come from each animation. Open β€œView the code” under an example to copy its setup into your own page." %}

{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}

{% translate "Integration code" %}

{% translate "Add this to your application: a container, the CSS file, the animation library, then the mount call in your application code. The counter is driven by the returned API." %}

<link rel="stylesheet" href="animations.css">
<div id="postal-frame"></div>
<script src="animation.js"></script>
<script>
  const postal = PymissiveAnimation.mountCard("postal-frame", "postal", {
    title: "Postal mail",
    subtitle: "Sending in progress",
    icon: "πŸ“¬",
    count: 3,
    speed: 1,
    caption: "Processing the letters",
    total: 100,
    remaining: 100,
    counter: true,
    counterBackground: false
  });

  postal.counter.reset(100);
  postal.counter.setRemaining(90);
</script>

{% translate "To mix several send types or pick another receiver, pass a list and the receiver option:" %} PymissiveAnimation.mountCard("frame-id", ["sms", "postal"], { receiver: "globe" }). {% translate "IDs and mount calls stay in your own HTML or JavaScript." %}

{% pymissive_animations_labels %} {% pymissive_animations_js %} {% endblock %}