限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

jquery世界各国时区在线时间

所属分类: 网页特效-日期时间    2024-11-05 09:56:51

jquery世界各国时区在线时间 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery世界各国时区在线时间(共10个文件)

    • index.html

使用方法

var update = function () {
  // Set Timezones
  currentTime = moment(new Date());
  orlandoTime = moment.tz("US/Eastern");
  kielTime = orlandoTime.clone().tz("Europe/Berlin");
  dubaiTime = orlandoTime.clone().tz("Asia/Dubai");
  bogotaTime = orlandoTime.clone().tz("America/Bogota");
  chicagoTime = orlandoTime.clone().tz("America/Chicago");
  torontoTime = orlandoTime.clone().tz("America/Toronto");
  dhakaTime = orlandoTime.clone().tz("Asia/Dhaka");
  londonTime = orlandoTime.clone().tz("Europe/London");
  aguadillaTime = orlandoTime.clone().tz("America/Puerto_Rico");

  // Orlando
  $('.location-orlando .time-24 .hour').html(orlandoTime.format('HH'));
  $('.location-orlando .time-24 .minute').html(orlandoTime.format('mm'));
  $('.location-orlando .time-12').html(orlandoTime.format('LT'));
  $('.location-orlando .day').html(orlandoTime.format('ddd.'));
  $('.location-orlando .date').html(orlandoTime.format('Do'));

  // Kiel
  $('.location-kiel .time-24 .hour').html(kielTime.format('HH'));
  $('.location-kiel .time-24 .minute').html(kielTime.format('mm'));
  $('.location-kiel .time-12').html(kielTime.format('LT'));
  $('.location-kiel .day').html(kielTime.format('ddd.'));
  $('.location-kiel .date').html(kielTime.format('Do'));

  // Dubai
  $('.location-dubai .time-24 .hour').html(dubaiTime.format('HH'));
  $('.location-dubai .time-24 .minute').html(dubaiTime.format('mm'));
  $('.location-dubai .time-12').html(dubaiTime.format('LT'));
  $('.location-dubai .day').html(dubaiTime.format('ddd.'));
  $('.location-dubai .date').html(dubaiTime.format('Do'));

  // Bogota
  $('.location-bogota .time-24 .hour').html(bogotaTime.format('HH'));
  $('.location-bogota .time-24 .minute').html(bogotaTime.format('mm'));
  $('.location-bogota .time-12').html(bogotaTime.format('LT'));
  $('.location-bogota .day').html(bogotaTime.format('ddd.'));
  $('.location-bogota .date').html(bogotaTime.format('Do'));

  // Chicago
  $('.location-chicago .time-24 .hour').html(chicagoTime.format('HH'));
  $('.location-chicago .time-24 .minute').html(chicagoTime.format('mm'));
  $('.location-chicago .time-12').html(chicagoTime.format('LT'));
  $('.location-chicago .day').html(chicagoTime.format('ddd.'));
  $('.location-chicago .date').html(chicagoTime.format('Do'));

  // Toronto
  $('.location-toronto .time-24 .hour').html(torontoTime.format('HH'));
  $('.location-toronto .time-24 .minute').html(torontoTime.format('mm'));
  $('.location-toronto .time-12').html(torontoTime.format('LT'));
  $('.location-toronto .day').html(torontoTime.format('ddd.'));
  $('.location-toronto .date').html(torontoTime.format('Do'));

  // Dhaka
  $('.location-dhaka .time-24 .hour').html(dhakaTime.format('HH'));
  $('.location-dhaka .time-24 .minute').html(dhakaTime.format('mm'));
  $('.location-dhaka .time-12').html(dhakaTime.format('LT'));
  $('.location-dhaka .day').html(dhakaTime.format('ddd.'));
  $('.location-dhaka .date').html(dhakaTime.format('Do'));

  // London
  $('.location-london .time-24 .hour').html(londonTime.format('HH'));
  $('.location-london .time-24 .minute').html(londonTime.format('mm'));
  $('.location-london .time-12').html(londonTime.format('LT'));
  $('.location-london .day').html(londonTime.format('ddd.'));
  $('.location-london .date').html(londonTime.format('Do'));

  // Aguadilla
  $('.location-aguadilla .time-24 .hour').html(aguadillaTime.format('HH'));
  $('.location-aguadilla .time-24 .minute').html(aguadillaTime.format('mm'));
  $('.location-aguadilla .time-12').html(aguadillaTime.format('LT'));
  $('.location-aguadilla .day').html(aguadillaTime.format('ddd.'));
  $('.location-aguadilla .date').html(aguadillaTime.format('Do'));
};

// Update Time
$(function () {
  update();
  setInterval(update, 1000);
});




// Toggle Switch
var highlightBtn = $('#switch');
var locationContainer = $('.location');
var locationBg = $('.bg');

function toggleView() {
  locationBg.toggleClass('bg-img');
  locationContainer.toggleClass('white');
}

toggleView();

highlightBtn.click(function () {
  toggleView();
});

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 日期时间

jquery响应式基于CSS3的数字时钟特效

一款CSS3模拟时钟特效,在jQuery、HTML和CSS/CS3中实现的数字时钟和模拟时钟。
  日期时间
 1298  0

jquery动画翻转网页时钟插件

一款逼真的动画翻转时钟,以复古风格显示当前时间。使用jQuery和CSS动画编写。
  日期时间
 7511  0

基于AngularJS的日期和时间选择组件

一款基于AngularJS的日期时间选择组件,支持年月日的快速选择定位,当前这款AngularJS日期选择组件还支持时分秒时间选择,可精确到秒。
  日期时间
 997  0

jquery点击文本框弹出时间选择器代码

一个轻量级的几点几分选择器组件,分别点击H小时或M分钟,可快速选择,还可以点击上下箭头进行递增。
  日期时间
 8280  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论