就业公告 MORE

就业新闻 MORE

  • 校内宣讲会
  • 双选会
  • 在线招聘
  • 实习岗位
  • 校外宣讲会
  • 校外双选会
MORE
' + str + '
'; $(this.o).append(str); self._$focus = $('.focus-btn', $(this.o)); self._$focus.eq(0).addClass(this.cName); } } else { self._$focus = $('.focus-btn', $(this.o)); self._$focus.eq(0).addClass(this.cName); } } }, bindEvents: function() { this.focusHoveEvent(); }, focusHoveEvent: function() { var self = this; if (!self._$focus.length) return; $('.focus-btn').hover(function() { var $this = $(this); clearInterval(self._timer); clearTimeout(self._timeout); self._timeout = setTimeout(function() { _prevIndex = self._currIndex; self._currIndex = $this.index(); self.autoPlay(); }, (self.at / 10) * 2); }, function() { clearInterval(self._timer); clearTimeout(self._timeout); if (self._imgNum > 1 && self._static.indexOf($('#token').val()) == -1) { self.auto(); } }); }, //焦点事件 focusEvent: function() { var self = this; $(this.o).on('click', '.focus-btn', function() { clearInterval(self._timer); _prevIndex = self._currIndex; self._currIndex = $(this).index(); self.autoPlay(); if (self._imgNum > 1 && self._static.indexOf($('#token').val()) == -1) { self.auto(); } }); }, auto: function() { var self = this; self._timer = setInterval(function() { _prevIndex = self._currIndex; self._currIndex = self._currIndex >= self._imgNum - 1 ? 0 : self._currIndex + 1; self.autoPlay(); }, this.t); }, autoPlay: function() { var self = this; self._$items.eq(_prevIndex).fadeOut(this.at); self._$items.eq(self._currIndex).fadeIn(self.at); this.setFocusStyle(); }, //设置焦点的样式 setFocusStyle: function() { var self = this; if (this.isFocus === true || this.isCreateFocus === true) { if (self._imgNum > 1) { self._$focus.eq(self._currIndex).addClass(this.cName).siblings().removeClass(this.cName); } } } } $.floatToolbar = function(options) { var defaults = { cName: 'change-pos', page_w: 1200, hideName: 'hidden', speed: 300 //回到顶部的速度 }; var options = $.extend({}, defaults, options); var obj = new floatToolbar(this, options); obj.init(); } var _$floatToolbar = null, _$service = null, _$collect = null, _$code = null, _$backToTop = null; function floatToolbar(o, v) { this.o = o; for (var i in v) { this[i] = v[i]; } } floatToolbar.prototype = { init: function() { this.createHtml(); this.bindEvents(); }, createHtml: function() { var token = $.trim($('#token').val()), qq = $('#qq_servers').val(), html = []; html.push('
'); html.push(''); html.push('
'); $('body').append(html.join('')); _$floatToolbar = $('#float_toolbar'); _$service = _$floatToolbar.find('.j-online-service'); _$collect = _$floatToolbar.find('.j-collect'); _$code = _$floatToolbar.find('.j-code'); _$backToTop = _$floatToolbar.find('.j-backtotop'); this.setStyle(); }, bindEvents: function() { this.windowResizeEvent(); this.windowScrollEvent(); this.onlineServiceEvent(); this.addCollectEvent(); this.backToTopEvent(); this.hoverEvent(); }, //监听窗口变化 windowResizeEvent: function() { var self = this; $(window).on('resize', function() { self.setStyle(); }); }, setStyle: function() { var win_w = $(window).width(), bar_w = _$floatToolbar.outerWidth(); var r_w = Math.ceil((win_w - this.page_w) / 2); if (r_w < bar_w) { _$floatToolbar.addClass(this.cName); } else { _$floatToolbar.removeClass(this.cName); } }, //监听滚动条滚动 windowScrollEvent: function() { var self = this; $(window).on('scroll', function() { var timer = setTimeout(function() { if ($(document).scrollTop() > 100) { if (_$backToTop.hasClass(self.hideName)) { _$backToTop.removeClass(self.hideName); } } else { if (!_$backToTop.hasClass(self.hideName)) { _$backToTop.addClass(self.hideName); } } }, 100); }); }, //在线咨询 onlineServiceEvent: function() { if (!_$service.length) return; _$service.on('click', function() { var $qqFrame = $('#qq_iframe'); if (!$qqFrame.length) { var qq = '3353913724'; var str = ''; $('body').append(str); } else { $qqFrame.attr('src', $qqFrame.attr('src')); } }); }, //加入收藏 addCollectEvent: function() { _$collect.on('click', function() { var url = window.locations, title = document.title; try { window.external.addFavorite(url, title); } catch (e) { try { window.sidebar.addPanel(title, url, ""); } catch (e) { alert("加入收藏失败,请使用Ctrl+D进行添加"); } } }); }, //回到顶部 backToTopEvent: function() { var self = this; _$backToTop.on('click', function() { $('html, body').animate({ scrollTop: 0 }, this.speed ); }); }, hoverEvent: function() { var $items = _$floatToolbar.find('li'); $items.hover(function() { var $item = $(this), item_h = $(this).outerWidth(), $animate = $(this).find('.tool-icon'); clearTimeout(timer); var timer = setTimeout(function() { if (!$animate.is(":animated")) { $animate.animate({ 'margin-top': -item_h + 'px' }, 300, function() { var $tool_son = $item.find('.tool-son'); if ($tool_son.length) { if ($tool_son.hasClass('hide')) { $tool_son.removeClass('hide'); } } } ); } }, 100); }, function() { var $item = $(this); $(this).stop(false, true).find('.tool-icon').animate({ 'margin-top': '0' }, 300, function() { var $tool_son = $item.find('.tool-son'); if ($tool_son.length) { if (!$tool_son.hasClass('hide')) { $tool_son.addClass('hide'); } } }); }) } } $.floatToolbar(); $.customDate = function(options) { var defaults = { id: '', year: (new Date).getFullYear(), month: (new Date).getMonth() + 1, week: ['日', '一', '二', '三', '四', '五', '六'], currName: 'curr', selectedName: 'selected', onMonthChange: null, //function(yearMonth,callback){}, onMouseOver: null, //function($o,day){}, onMouseOut: null, onClickEvent: null //function(callback){} }; var options = $.extend({}, defaults, options); var obj = new customDate(this, options); obj.init(); return obj; } function customDate(o, v) { this.o = o; for (var i in v) { this[i] = v[i]; } } customDate.prototype = { init: function() { this.layout(); this.monthData(); this.bindEvents(); }, //生成日历html layout: function() { var html = []; html.push('
'); html.push('
'); html.push(''); html.push(''); html.push( '招聘日历' ); html.push('

'); html.push('
'); html.push('
'); html.push(''); html.push(''); html.push(''); for (var i = 0; i < this.week.length; i++) { html.push(''); } html.push(''); html.push(''); html.push('
' + this.week[i] + '
'); html.push('
'); html.push('
'); html.push('
'); $('#' + this.id).html(html.join('')); }, //生成一个月的数据 createDaysHtml: function() { var html = [], days = this.getMothDays(this.year, this.month), weekDay = this.getFirstDay(this.year, this.month - 1), prev_year, prev_month, prev_days, next_year, next_month, next_days; if (this.month == 1) { prev_month = 12; prev_year = this.year - 1; prev_days = this.getMothDays(prev_year, prev_month); } else { prev_month = this.month - 1; prev_year = this.year; prev_days = this.getMothDays(prev_year, prev_month); } if (this.month == 12) { next_month = 1; next_year = this.year + 1; next_days = this.getMothDays(next_year, next_month); } else { next_month = this.month + 1; next_year = this.year; next_days = this.getMothDays(next_year, next_month); } var prev_first_day = prev_days - weekDay, next_day = 1; html.push(''); html.push(''); for (var a = 0, b = 0; a < 42; a++) { if (a % 7 == 0) { html.push(''); } if (a < weekDay) { var currDay = prev_year + '-' + prev_month + '-' + (++prev_first_day); html.push(''); } else if (a >= weekDay + days) { var currDay = next_year + '-' + next_month + '-' + next_day; html.push(''); } else { var currDay = this.year + '-' + this.month + '-' + (b + 1); html.push(''); } if ((a + 1) % 7 == 0) { html.push(''); } } html.push(''); html.push('
'); html.push('' + prev_first_day + ''); html.push(''); html.push('' + (next_day++) + ''); html.push(''); // 改为正常显示的日期,添加背景色 if (currDay === this.getCurrDay()) { html.push('' + (++b) + ''); // html.push(''); // ++b; } else { html.push('' + (++b) + ''); } html.push('
'); $('#' + this.id).find('.date-days').html(html.join('')); this.setTodayStyle(); }, createDateTips: function(top, left) { var html = []; html.push('
'); html.push('
'); html.push('
'); html.push('
'); $('body').append(html.join('')); var $dataTips = $('.pub-date-tips'); this.setDateTipsStyle($dataTips, top, left); }, setDateTipsStyle: function($dataTips, top, left) { if (this.left) { $dataTips.addClass('left'); left -= 460; } $dataTips.css({ top: top, left: left }); }, //设置今天的样式 setTodayStyle: function() { var fontColor = $('.pub-custom-date .date-head').css('background-color'); $('.date-today').text('今').css({ 'color': fontColor, 'border': '1px solid ' + fontColor, 'border-radius': '50%' }); }, /* * 获取当前月份天数 */ getMothDays: function(year, month) { var date = new Date(year, month, 0); return date.getDate(); }, /* * 获取月份第一天 */ getFirstDay: function(year, month) { var date = new Date(), newDate = new Date(year, month, 1); return newDate.getDay(); }, bindEvents: function() { this.prevEvent(); this.nextEvent(); this.clickEvent(); }, setTit: function() { var $tit = $('#' + this.id).find('.curr-date'); $tit.text(this.year + '年' + this.month + '月'); }, //获取当前日期 getCurrDay: function() { var date = new Date(), year = date.getFullYear(), month = parseInt(date.getMonth()) + 1, date = date.getDate(); return year + '-' + month + '-' + date; }, //设置当前日期的样式 setCurrdateStyle: function(day) { var currDate = day; var $currDate = $('#' + this.id).find('.date-cell[data-day="' + currDate + '"]'); $currDate.addClass('curr').siblings().removeClass('curr'); $currDate.closest('tr').siblings().find('.date-cell').removeClass('curr'); }, //设置可预定的日期 setDates: function(data) { var self = this; var $dateDays = $('#' + this.id).find('.date-cell[data-day]'); for (var i = 0; i < data.length; i++) { $.each($dateDays, function(a, el) { var item = data[i]; if ($(el).attr('data-day') == item.book_day) { $(el).addClass(self.selectedName); switch (item.type) { case '0': $(el).addClass('career'); break; case '1': $(el).addClass('jobfair'); break; case '3': $(el).addClass('employ'); break; } } }); } }, hoverEvent: function() { if (!this.onMouseOver) return; var self = this, $selectedDays = $('#' + this.id).find('.date-cell.' + this.selectedName), timer; if ($selectedDays.length) { $selectedDays.hover(function() { clearTimeout(timer); var $dateText = $(this).find('.date-text'), top = $dateText.offset().top + Math.ceil($dateText.outerHeight() / 2) - 15, left = $dateText.offset().left + Math.ceil($dateText.outerWidth() + 15), day = $(this).attr('data-day'); var $dateTips = $('.pub-date-tips'); if ($dateTips.length > 0) { self.setDateTipsStyle($dateTips, top, left); } else { self.createDateTips(top, left); } var $dateTipsInner = $('.pub-date-tips').find('.dt-inner'); self.onMouseOver($dateTipsInner, day); }, function() { timer = setTimeout(function() { self.removeDayTips(); }, 400); var $dateTips = $('.pub-date-tips'); if ($dateTips.length) { $dateTips.hover(function() { clearTimeout(timer); }, function() { self.removeDayTips(); }); } }); } }, clickEvent: function() { if (!!this.onClickEvent) { var self = this; $('#' + this.id).on('click', '.date-tbody .date-cell', function() { if (!$(this).hasClass('curr')) { var day = $(this).attr('data-day'); if (!!day) { self.setCurrdateStyle(day); self.onClickEvent(day); } } }); } }, //移除tips removeDayTips: function() { var $dayTips = $('.pub-date-tips'); if ($dayTips.length) { $dayTips.remove(); } }, //一个月的数据 monthData: function() { var self = this; if (!!this.onMonthChange) { var yearMonth = self.year + '-' + self.month; this.onMonthChange(yearMonth, function(data, overdue) { self.setTit(); self.createDaysHtml(); self.setDates(data); self.setOverdue(overdue); self.hoverEvent(); }); } }, //上一个月 prevEvent: function() { var self = this; $('#' + this.id).on('click', '.prev-btn', function() { if (self.month > 1) { self.month = self.month - 1; } else { self.month = 12; self.year = self.year - 1; } self.monthData(); }); }, //下一个月 nextEvent: function() { var self = this; $('#' + this.id).on('click', '.next-btn', function() { if (self.month >= 12) { self.month = 1; self.year = self.year + 1; } else { self.month = self.month + 1; } self.monthData(); }); }, setOverdue: function(overdue) { var self = this; if (overdue) { var $dateDays = $('#' + this.id).find('.date-cell.' + self.selectedName); $.each($dateDays, function(i, el) { var overdue = new Date($(el).attr('data-day')).getTime() / 1000; var today = new Date(new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate()).getTime() / 1000; if (overdue < today && overdue != today) { $(el).find('.date-text').css('background-color', '#ddd'); $(el).find('.date-text').css('border-color', '#ddd'); } }); } } } /** * 阻止事件的默认行为和冒泡 * event/e 事件对象 * @private */ var _preventDefault = function(e) { e.preventDefault(); e.stopPropagation(); } /** * 当显示弹层时,阻止页面的滑动事件 * @private */ var _addMouseMove = function() { $(document).on("scroll", _preventDefault); } /** * 当隐藏弹层时,取消阻止页面滑动的监听事件 * @private */ var _removeMouseMove = function() { $(document).off("scroll", _preventDefault); } var _dialog = customDialog = { showLoading: function() { var $load = $('body').find('.dialog-loading'); if ($load.length) { $load.removeClass('hide'); } else { var html = []; html.push('
'); html.push('
'); html.push('
'); html.push( '收藏本页' ); html.push('
'); html.push('
'); $('body').append(html.join('')); } _addMouseMove(); }, hideLoading: function() { var $load = $('body').find('.dialog-loading'); if ($load.length) { $load.addClass('hide'); } _removeMouseMove(); }, //内嵌loading innerLoading: function($o) { var html = []; html.push('
'); html.push('
'); html.push( '二维码' ); html.push('
'); html.push('
'); $o.html(html.join('')); }, //提示信息 showMessage: function(text, show_time) { var show_time = show_time || 3000; var $message = $('body').find('.dialog-message'); if ($message.length) { $message.html(text).removeClass('hide'); } else { var html = []; html.push('
' + text + '
'); $('body').append(html.join('')); $message = $('body').find('.dialog-message'); } this.setPos($message); setTimeout(function() { $message.addClass('hide'); }, show_time); }, //提示信息块定位 setPos: function($o) { var w = $o.outerWidth(), h = $o.outerHeight(); $o.css({ 'margin-top': -Math.ceil(h / 2) + 'px', 'margin-left': -Math.ceil(w / 2) + 'px' }) } } $('.side-date').on('click', '.date-cell', function() { var day = $(this).data('day'); window.open('https://syuct.bysjy.com.cn/module/careers?day=' + day); });
公开资讯滚动更新。建议通过站内栏目继续浏览,核对最新条目。