diff --git a/Bootstrap.Admin/wwwroot/images/Pic0.jpg b/Bootstrap.Admin/wwwroot/images/Pic0.jpg new file mode 100644 index 00000000..ccfbedd1 Binary files /dev/null and b/Bootstrap.Admin/wwwroot/images/Pic0.jpg differ diff --git a/Bootstrap.Admin/wwwroot/images/Pic1.jpg b/Bootstrap.Admin/wwwroot/images/Pic1.jpg new file mode 100644 index 00000000..689cc20c Binary files /dev/null and b/Bootstrap.Admin/wwwroot/images/Pic1.jpg differ diff --git a/Bootstrap.Admin/wwwroot/images/Pic2.jpg b/Bootstrap.Admin/wwwroot/images/Pic2.jpg new file mode 100644 index 00000000..6ec84255 Binary files /dev/null and b/Bootstrap.Admin/wwwroot/images/Pic2.jpg differ diff --git a/Bootstrap.Admin/wwwroot/images/Pic3.jpg b/Bootstrap.Admin/wwwroot/images/Pic3.jpg new file mode 100644 index 00000000..d1d1553d Binary files /dev/null and b/Bootstrap.Admin/wwwroot/images/Pic3.jpg differ diff --git a/Bootstrap.Admin/wwwroot/images/Pic4.jpg b/Bootstrap.Admin/wwwroot/images/Pic4.jpg new file mode 100644 index 00000000..d718c2bb Binary files /dev/null and b/Bootstrap.Admin/wwwroot/images/Pic4.jpg differ diff --git a/Bootstrap.Admin/wwwroot/lib/captcha/longbow.slidercaptcha.js b/Bootstrap.Admin/wwwroot/lib/captcha/longbow.slidercaptcha.js index 107295a2..feabdbaa 100644 --- a/Bootstrap.Admin/wwwroot/lib/captcha/longbow.slidercaptcha.js +++ b/Bootstrap.Admin/wwwroot/lib/captcha/longbow.slidercaptcha.js @@ -126,6 +126,9 @@ var getRandomNumberByRange = function (start, end) { return Math.round(Math.random() * (end - start) + start); }; + var localImg = function () { + return $.format('../images/Pic{0}.jpg', Math.round(Math.random() * 4)); + }; var img = new Image(); img.crossOrigin = "Anonymous"; img.onload = function () { @@ -144,7 +147,7 @@ that.text.text(that.text.attr('data-text')); }; img.onerror = function () { - img.setSrc(); + img.src = localImg(); } img.setSrc = function () { var src = '';