[ad_1]
Dear AZ reader! For the New Year, the AZ online offer will change:
. 1 If you already receive an electronic subscription, you will immediately receive a password, which will allow you to access our my.na internet platform.
. 2 What exactly changes and how to order a subscription, read here.
Dear AZ readers and friends of Namibia!
We would like to take this opportunity to thank you for your loyalty in 2016 and wish you a happy new year!
In 2017, the publishing house NMH, to which AZ belongs, implement a new strategy for the use of all newspaper websites.
There will be a clear demarcation between the free offer and a paid offer, the last on 1.
February in a different form than before and starts with additional benefits.
First, we ask you to register on the AZ site in January.
to be able to continue reading the Internet edition for free.
A notice will appear on the website, the registration will be via the portal my.na of NMH and is a unique agreement
What will change from February 2017?
As the global and regional trend towards the payment model drives news from online newspapers,
by which messages can not be read at all or can not be read completely without being paid for
The AZ offer will remain free but will be available with a deadline. C & # 39; is,
that from February 1st, contributions to the AZ site can be read for free and completely, but only from noon.
Prerequisite is in any case the registration / registration (see above).
Those who want to have continuous access to news on the AZ site (including the PDF version of all pages as well as the latest news that will be posted online during the day),
The following options are available:
- Subscribe to the electronic edition of the
AZ website with the additional home delivery option of the paper edition (only in urban areas in Namibia). - In Namibia: Buy the AZ paper edition every day,
where you will find a 4-digit numeric code that will give you access to all the offers on the AZ website - In Namibia: Subscribe to the AZ paper number, which is delivered to you every day (in urban areas). category = health & # 39;
var keywords = [“Symptome”,”EBOLA”,”Krankheit”,”Kongo”,”Durchfall”,”mysteriu00f6s”,”Erbrechen”,”Fieber”];
var article_date = "2018-07-31 13:16:00";
public var = [];
var agent = & # 39 ;;
// PRE-STRESS
window.onload = showBody;
function showBody () {
. $ ("# Pre_load") delay (500) .fadeOut (500);setInterval (function () {
duration = moment (). local ("of"). format (dddd, Do MMMM, YYYY HH: mm: ss));
// shows how many hours, minutes and seconds it remains
$ (# -days-time) text (duration).
}, 1000);
$ (# RegModal #); one (& # 39; shown.bs.modal & # 39 ;, function () {$ (# My_na_frame3 #); attr (& # 39; src & # 39 ;, & gt; https: //www.my.na/nmh/register/') .removeClass (& # 39; hide & # 39;);
});
$ (# InterestModal #); one (& # 39; shown.bs.modal & # 39 ;, function () {$ (# My_na_frame4 #); attr ("src", "https://www.my.na/nmh/interests/') .removeClass (" hide ");
});
loadDeferredStyles;// WindowResize ();
swipeHeight ();
heightCalculate ();// SUBMIT PAID CODE
$ (# Pay_code #); we (& # 39; submit & # 39; function (e) {e.preventDefault ();
var frm = $ (this);
var dataf = frm.serialize ();
var btn = $ (this) .find (& # 39; button);
btn.addClass (& # 39; disabled);
//console.log(frm.attr('action')+'?'+dataf);$ .getJSON (frm.attr ('action') + '+ dataf, function (data) {
if (data.success) {
//console.log('yeah & # 39; + data);
set_code_access (data);
} Else {$ (# Msg_code) html (
You gave the wrong code.& # 39;)
//console.log('Noooo & # 39; + data);
btn.removeClass (& # 39; disabled);
}});
});
$ (# # Title pages & # 39;). Flickity ({
Wraparound: true
cellSelector: ".swipe-item",
contain: true,
lazyLoad: true,
automatic play: 3100,
setGallerySize: false,
initial index: 0,
pageDots: false
});$ (# Pic_of_day & # 39;). Flickity ({
Wraparound: true
cellSelector: ".swipe-item",
contain: true,
lazyLoad: true,
automatic play: 3100,
setGallerySize: false,
initial index: 0,
pageDots: false
});load_more ();
run_my_na_na ();
autoPlayYouTubeModal ();
load_my_na_products ();
goinit ();
window.setTimeout (function () {
load_picsad (& # 39 ;, 8, & # 39; ad_block_1 & # 39;);
get_wethear ('na', 'windhoek');
}, 1500);
the smart image ();
}function set_code_access (obj) {
$ .getJSON ("https://www.az.com.na/main/set_code/?code="+JSON.stringify(obj), function (data) {
if (data.success) {
window.location.reload ();
}});
}
var loadDeferredStyles = function () {
//console.log('deferre ");
var addStylesNode = document.getElementById ("deferred styles");
var replacement = document.createElement ("div");
replacement.innerHTML = addStylesNode.textContent;
document.body.appendChild (replacement)
addStylesNode.parentElement.removeChild (addStylesNode);};
var raf = ("undefined"! = typeof requestAnimationFrame)? requestAnimationFrame: false ||
("undefined"! = typeof mozRequestAnimationFrame)? mozRequestAnimationFrame: false ||
("undefined"! = typeof webkitRequestAnimationFrame)? webkitRequestAnimationFrame: false ||
("undefined"! = type of msRequestAnimationFrame)? msRequestAnimationFrame: false;if (raf)
{
raf (loadDeferredStyles);
}
d & # 39; other
{
if ("undefined"! = typeof window.addEventListener)
window.addEventListener (& # 39; load & # 39; loadDeferredStyles);
else if ("undefined"! = typeof window.attachEvent)
window.attachEvent (onload & # 39; loadDeferredStyles);
}function get_wethear (pussy, city) {
$ .getJSON ("https://nmh.my.na/weather/display2/"+cunt+"/"+city+"/"+3, function (data) {
if (data.success) {
$ (# Weather_cont & # 39;) html (data.html).
$ (& # 39;. City-weather & # 39;) unbind (& # 39; click & # 39;). bind (& # 39; click & # 39; function (e) {
var city = $ (this) .data (& # 39; location & # 39;);
//console.log(city);
get_wethear ("na", city);
});
}});
}
Go_login () {function. $ (# Profile_holder) find (& # 39;) & # 39;) click ().
}
function load_picsad (q, l, b) {
$ .getJSON ("https://nmh.my.na/main/get_picsad_hub/"+q+"/"+l+"/?bus_id=4856&keywords="+encodeURI(JSON.stringify(keywords))+"&category=" + encodeURI (category), function (data) {
var adb = $ (# + b);
for (var i = 0; i <data.length; i ++) {
var obj = data [i];
adb.prepend (obj.body);
adverts.push (obj);
agent = obj.user_agent;
}
// FIX MOBILE
if (agent ==> mobile)for (var ii = 0; ii <data.length; ii ++) {
var obj = data [ii];$ (# Adholder _ + ii) .html (obj.body);
}
}
load_content_ads ();
});}
// FUN TO GET AND SELF PLAY YOUTUBE VIDEO OF DATATAG
function autoPlayYouTubeModal () {
var trigger = $ ("body"). find (& # 39 ;. video & # 39;);
trigger.click (function () {
var theModal = $ (this) .data ("target"),
videoSRC = $ (this) .attr ("data-theVideo"),
videoSRCauto = videoSRC + "? autoplay = 1";
$ (theModal + & # 39; iframe & # 39;). attr (& # 39; src & # 39 ;, videoSRCauto);
$ (theModal + & # 39; button.close & # 39;). click on (function () {
$ (theModal + & # 39; iframe & # 39;). attr (& # 39; src & # 39 ;, videoSRC);
});
$ (& # 39; modal & # 39;). click on (function () {
$ (theModal + & # 39; iframe & # 39;). attr (& # 39; src & # 39 ;, videoSRC);
});
$ (& # 39; modal & # 39;). we (& # 39; hidden.bs.modal & # 39 ;, function () {
$ (theModal + & # 39; iframe & # 39;). attr (& # 39; src & # 39;; & # 39;);
})
});
}
function load_more () {$ (& # 39 ;. load-more & # 39;) unbind (& # 39; click & # 39;). bind (& # 39; click & # 39; function (e) {
e.preventDefault ();
var link = $ (this) .attr ("href"), targ = $ (this) .data ("target");
var more = $ (+ # +; targ + – # plus;);
more.html (& # 39; Loading & # 39;);
//console.log(link);
$ .get (link, function (data) {var adb = $ (# +; targ);
//console.log(adb);
adb.append (data);adb.animate ({
scroll: -200
});
more.fadeOut ()
window.setTimeout (function () {
more.remove ();
}, 1000);load_more ();
autoPlayYouTubeModal ();
the smart image ();
// FIX MOBILE
if (agent ==> mobile)
window.setTimeout (function () {
for (var ii = 1; ii <adverts.length; ii ++) {
var obj = advertisements [ii];$ (# Adholder _ + ii) .html (obj.body);
console.log (ii + going # +; obj.body);
}
}, 1000);
}
});});
}function load_content (link, targ, type) {
//console.log(link);
$ .get (link, function (data) {var adb = $ (# +; targ);
adb.hide ();
//console.log(adb);
adb.html (data);
load_more ();
run_my_na_na ();if (type == & # 39; normal & # 39;) {
heightCalculate ();
}
if (type == & # 39; mening & # 39;) {
// SURVEY RESULTS
$ (". poll-percent"). each (function () {
var% = $ (this) .attr (& # 39; rel);
$ (this) .attr ('title', percent +% percent '). append (& # 39;+% + & # 39;% & # 39;);
heightCalculate ();
});
}
if (type == & # 39; social)// TWITTER
(function (d, s, id) {var js, fjs = d.getElementsByTagName (s) [0] p = / ^ http: /. test (d.location)? & # 39; http & # 39 ;: & # 39; https & # 39 ;; if (! D.getElementById (id)) {js = d.createElement (s); js.id = id; js.src = p + ": //platform.twitter.com/widgets .js "; fjs.parentNode.insertBefore (js, FJS);}} (document," script "," twitter-WJS "));
(function (d, s, id) {
var js, fjs = d.getElementsByTagName (s) [0];
if (d.getElementById (id)) returns;
js = d.createElement (s); js.id = id;
js.src = "http://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore (js, fjs);
} (document, 'script', 'facebook-jssdk'));
}window.setTimeout (function () {
adb.fadeIn (500);
heightCalculate ();
}, 100);// $ (.category image, .image .price & # 39;). append (& # 39;
& # 39;);
});}
Function run_my_na_na () {
$ (& # 39;. My_na_na_btn & # 39;) unbind (& # 39; click & # 39;). bind ('click', function (e)
{
e.preventDefault ();
var type = $ (this) .data (& # 39; type), id = $ (this) .data (& # 39; id), cur = $ (this);
//console.log(type);
$ .getJSON ("https://www.az.com.na/main/my_na_na/?type="+type+"&type_id="+id, function (data) {if (data.result) {
cur.find (& # 39; span & # 39;). html (parseInt (cur.find (& # 39; span; text ()) + 1);
} Else {cur.attr (& # 39; rel & # 39 ;, & # 39; tooltip & quot;). attr (& # 39; title & # 39 ;, data.msg);
cur.tooltip (& # 39; show & # 39;);
}});
});
}
function load_my_na_products () {$ (& # 39 ;. load-more-products & # 39;) unbind (& # 39; click & # 39;). bind (& # 39; click & # 39; function (e) {
e.preventDefault ();
var btn = $ (this), cont = $ (# my_tab_product);
var h = cont.css ("height");
cont.html (& # 39;& # 39;). css ('height', h);
var link = btn.attr (& # 39; href & # 39;); //, targ = btn.data (& # 39; target & # 39;);
$ .get (link, function (data) {cont.html (data);
//cont.fadeIn ();
$ (& # 39; My_na_prod_slider & # 39;). Flickity ({
Wraparound: false,
cellSelector: ".swipe-item",
contain: true,
lazyLoad: true,
autoPlay: true,
setGallerySize: true,
initial index: 2,
pageDots: false
});swipeHeight ();
heightCalculate ();
load_my_na_products ();
});})
return false;
}
function start_products () {
var cont = $ (# my_tab_product);
$ .get ("https://www.az.com.na/main/get_my_na_products/0/0/0/10/my_products_tab/", function (data) {cont.html (data);
//cont.fadeIn ();
$ (& # 39; My_na_prod_slider & # 39;). Flickity ({
Wraparound: false,
cellSelector: ".swipe-item",
contain: true,
lazyLoad: true,
autoPlay: true,
setGallerySize: true,
initial index: 2,
pageDots: false
});
load_my_na_products ();
// $ (.category image, .image .price & # 39;). append (& # 39;& # 39;);
});}
function submit_poll (id) {var frm = $ (# form_poll _ + id), btn = $ (& # 39; # form_poll_btn _ & # 39; + id);
if (! $ ("input [name=’answers’]: checked"). val ()) {
frm.attr (& # 39; rel & # 39 ;, & # 39; tooltip & # 39;). attr ("title", "Please check for an answer");
frm.tooltip (& # 39; show & # 39;);
} else {
frm.tooltip (& # 39; destroy & # 39;);
btn.val (& # 39; Please wait .. & # 39;);
.ajax $ ({
type: "POST",
url: "https://www.az.com.na/survey/submit_poll/",
data: frm.serialize (),
success: function (data) {
varres = JSON.parse (data);
frm.attr (& # 39; rel & # 39 ;, & # 39; tooltip & # 39;). attr (& # 39; title & # 39 ;, res.msg);
frm.tooltip (& # 39; show & # 39;);
btn.val ('Thank you') addClass ('disable') attr ('onclick', 'return false;');
$ .each (res.percent, function (key, data) {var elem = $ (& # 39; # poll_q _ + key), perc = Math.round (data);
elem.attr (& # 39; rel, perc);
elem.find. (& # 39;) Animate ({
width: perc + & # 39;% & # 39;
}, 500);
elem.find ('duration') html (perc +% #);
});}
});}
return false;
}
SwipeHeight () function {
$ (& # 39; swipe & # 39;). Each (function () {
var thisFlickity = $ (this);
var swipeHeight = $ (this) .find (& # 39; swipe-item & # 39;). height ();
. ThisFlickity.find ("Flickity-of window.") Of height (swipeHeight);
});
}function heightCalculate () {
var windowWidth = $ (window) .width ();
if (windowWidth> = 800)
{
$ ('More flower'). Each (function () {
var overflowMain = $ (this) .find ('overflow-main'). height ();
var overflowAdjust = $ (this) .find (& # 39; overflow-adjust & # 39;);
overflowAdjust.height (main overflow);});
}
}
Function goinit () {$ (& # 39; [data-toggle=”tooltip”] & # 39;) tooltip ().
function menuCalculate () {
var windowWidth = $ (& # 39; body & # 39; css (& # 39; width & # 39;). replace (/ [^-d.] / g, & # 39;);
// var windowHeight = $ (& # 39; body & # 39;). css ("height"). replace (/ [^-d.] / g, & # 39;);
var menuWidth = $ (& # 39; # menu & # 39;). css (& # 39; width & # 39;). replace (/ [^-d.] / g, & # 39;);
var totalWidth = parseInt (windowWidth, 10) – parseInt (menuWidth, 10);
var headerHeight = $ (& # 39; # header). css ("height"). replace (/ [^-d.] / g, & # 39;);
mobile var = $ (# mobile);
// var h2 = (windowHeight – 102);if (mobile.hasClass (& # 39; is-open & # 39;)) {
if (windowWidth <= 800) {
.. $ (# principal, # header) stop () Animate ({width: width of the window, margin-left: menuWidth} , 0);
} Else {
.. $ (# principal, # header) stop () Animate ({width: total width, margin-left: menuWidth}, 0 );
}
.. $ (# main;) stop () animated ({# padding-top: headerHeight}, 0);
.. $ (# menu) stop () Animate ({margin-left: 0px}, 0);
$ (# Mobile i) removeClass (& quot; fa-angle-double-right & quot;) addClass (& quot; fa-angle-double-left & # 39;);} Else {
.. $ (# principal, # header) stop () Animate ({width: width of the window, margin-left, & # 39; 39; 0px & # 39;}, 0);
.. $ (# main;) stop () animated ({# padding-top: headerHeight}, 0);
.. $ (# Menu) stop () Animate ({-menu-left: – menuWidth}, 0);
$ (# Mobile i ') removeClass (' fa-angle-double-left ') addClass (' fa-angle-double-right ');}
}function mediaQuerry () {
var windowWidth = $ (window) .width ();if (windowWidth <= 801) {
// FOR MOBILE
$ (# Mobile;) removeClass (& # 39; is open. & # 39;);
menuCalculate ();
swipeHeight ();
// heightCalculate ();} Else {
// FOR OFFICE
//console.log(get_local('menu_open & # 39 ;, true));
if (get_local ('menu_open')) {
$ (# Mobile;) removeClass (& # 39; is open. & # 39;);
} Else {
$ (# Mobile #) addClass (& # 39; is open. & # 39;);}
menuCalculate ();
swipeHeight ();
heightCalculate ();}
// catch an item
var myElement = document.getElementById ("header");
// Build an instance of the margin, passing the item
var headroom = new Headroom (myElement, {
"offset": 10,
"tolerance": 20,
"classes": {
"initial": "animated",
"pinned": "slideDown",
"not pinned": "slideUp"
}
});
// initialize
headroom.init ();}
$ (# Mobile) unbind ('click'). bind (& # 39; click & # 39 ;, function () {
if ($ (this) .hasClass (& # 39; is-open & # 39;)) {
$ (This) .removeClass (& # 39; is open & # 39;);
menuCalculate ();
save_local (& # 39; menu_open & # 39 ;, true);
} Else {
$ (Ce) .addClass (& # 39; is open & # 39;);
menuCalculate ();
save_local ('menu_open', false);
}
});$ (window) .resize (function () {
mediaQuerry ();
});mediaQuerry ();
// FANTASY BOX
$ ("left"). fancybox ({margin: 20, fill: 5});
$ ("a.media"). fancybox ({margin: 20, fill: 0, helpers: {
title: {
type: & # 39; outside & # 39;
}
}});
// FANTASY BOX
$ (".fancy-images") .fancybox ({margin: 20, padding: 5});
$ (".fancy-media") .fancybox ({margin: 20, fill: 0, type: iframe, iframe: {preload: false}});
$ (".fancy-print"). fancybox ({width: 150, height: 150, margin: 20, fill: 0, type: iframe, iframe: {preload: false}});$ (Inview & # 39;) bind (& # 39; inview & # 39 ;, function (event, visible) {
var type = $ (this) .data (& # 39; type);
var tt = $ (this) .data (& # 39; display);if (visible == true) {
if (tt == 0) {
} Else {
if (type == & # 39; products & # 39;) {start_products ();
}
if (type == "normal" type == "photos & # 39; || type == & # 39; mening & # 39; || type == & # 39; social & # 39; 39;) {var link = $ (this) .data (& # 39;); targ = $ (this) .data (& # 39; target & # 39;);
load_content (link, targ, type);
}
//console.log(type);
$ (this) .data (& # 39; display, 0);}
} else {
// the item came out of sight
}
});}
function save_local (type, str) {
if (typeof (Storage)! == "not defined") {
// Code for localStorage / sessionStorage.sessionStorage [type] = str;
return true;} else {
// sorry! No web storage support.
return false;
}}
function get_local (type) {if (typeof (Storage)! == "not defined") {
// Code for localStorage / sessionStorage.if (sessionStorage [type] === & # 39;) {
return true;
} Else {
return false;
}
} else {
// sorry! No web storage support.
return false;
}}
function load_content_ads () {
if ($ () # POST_CONTENT. html ()) {
var str = $ (# post_content & # 39;)
var str1 = str.html (). split (& # 39;
& # 39;);
var height = str.height ();
str.empty ();
} Else {
var str = & # 39;
var str1 = [];
var height = 0;
}var gallery = $ (# gallery). length;
var go = false, go2 = false, go1 = false;
var has_id = 0;
var keygo = false, keygo2 = false, keygo1 = false;
var has_key_id = 0;
var fail = false;
var $ stop = true;
console.log ("height:" + height);
console.log ("Number of ads:" + ads.length);
console.log ("Category:" + category);console.log (keywords);
console.log ("gallery length" + gallery);
var keywordsA = keywords;// KEYWORD GAME
for (var xx = 0, len = adverts.length; xx <len; xx ++) {if (advertisements [xx] .keywords! = null) {
var keyA = advertisements [xx] .keywords.split (",");
for (var kk = 0, lenA = keyA.length; kk <lenA; kk ++) {
//console.log('Test test: + keyA [kk]);
// if (keywordsA.indexOf (keyA [kk])! = -1) {
if ($ .inArray (keyA [kk] keywordsA)! = -1) {
result = advertisements [xx];
has_key_id = xx;
keygo = true;
console.log (& nbsp; yes keyword: id: + result.id + "" + keyA [kk]);} Else {
keygo1 = true;
//console.log('NO keyword & # 39;);
}
}}
}
// CATEGORY OF GAME
for (var xxx = 0, len = adverts.length; xxx <len; xxx ++) {
if (advertisements [xxx] .category === category) {
result = advertisements [xxx];
has_id = xxx;
go = true;
console.log (& # 39; yes category match: id: + result.id + "" + result.category);} Else {
go1 = true;
//console.log('NO category match & # 39;);
}
}for (var i = 0; i
0) {
str.append ("" + str1 [i] + "
");
h_top = $ (& # 39; # para _ + i) .position (). top;// NO CAT AND PASSWORD
if (has_id == 0 && has_key_id == 0) {// NO MATCH
if ((h_top> 500 || gallery == 0) && go2 === true) {
var result = advertisements [0];
str.append (result.body.replace ("