Недавно я получил почтового ящика из Onnit Labs, который включал таймер обратного отсчета в почтовом устройстве, используя изображение gif. По электронной почте можно посмотреть здесь: https://www.onnit.com/emails/lastchance-historic/
Изображение можно увидеть здесь:
Я просмотрел его, и кажется, что вы можете продолжать отправлять новые кадры в анимированный GIF с помощью gifsockets, поскольку GIF не определяет, сколько фреймов оно имеет при загрузке в браузере. Здесь он находится на github: http://github.com/videlalvaro/gifsockets
Я думал, что это было довольно интересно и действительно здорово. Есть ли у кого-нибудь другое представление о том, как это можно сделать? Кажется, что тот, который они используют в Onnit, по-видимому, меняет обратный отсчет в соответствии с датой, добавленной в конце URL-адреса или изображения.
onnit.com/emails/_modules/timer/?end=2012-12-27+00:00:00&dark=1
Я пытаюсь выполнить одно и то же, чтобы отправить по электронной почте, но я немного озадачен.