in my sharepoint home page am using a image slider. so am saved some images in this path C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\STYLES\images. so in this folder there are some images. but in browser am getting only 2 images. Remaining images are not displaying.Means they are appering as some crashed image. but in folder am able to all the images. but in browser only 2 images(new and mutual) are displaying,other 3.jpg and 1.jpg are not displaying.
<div id="slideshow">
<div class="container">
<div class="row">
<div class="col-md-8 can" >
<div id="featured-slider">
<a href="#">
<img src="../../images/new.jpg" class="img-responsive" alt=""/> </a>
<a href="#">
<img src="../../images/mutual.jpg" class="img-responsive" alt=""/> </a>
<a href="#">
<img src="../../images/3.jpg" class="img-responsive" alt=""/> </a>
<a href="#">
<img src="../../images/1.jpg" class="img-responsive" alt=""/> </a> </div>
</div>
</div>
</div>
</div>
I noticed your tags are missing the closing .
Also, you might try changing the names of 3.jpg and 1.jpg because SharePoint might have trouble with those names in this context.
Related
So, after i upgraded my Angular Application to Angular 10 (from 7) i get the Following Error when serving the Application via ng serve.
ERROR in ./src/app/lizenz-list/lizenz-list.component.html 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
The HTML file looks like this
<ng-template #CRUDTemplatePluginTableCaption>
<div class="ui-g-12 ui-md-6">
<button type="button" style="margin-right: 10px" pButton icon="ui-icon-add"
(click)="addCRUDItem()"></button>
<button type="button" pButton icon="far fa-server" (click)="getServerInfo()"></button>
</div>
</ng-template>
The template of lizenz-list.ts looks like this:
template: `${CRUDBasicListComponent_Template || ''}${LizenzListComponent_Template}`
Perhaps this could be the issue?
On Angular 7 everything worked fine, i just cant find the answer to the Problem.
EDIT: I am Using PrimeNg as an UI Library.
CRUDBasicListComponent_Template is an Exported html Template that looks like this:
<p-table [properties etc..]>
<ng-template pTemplate="caption">
<!--Where the ng-Template from Lizenz should be replaced -->
<ng-container *ngTemplateOutlet="CRUDTemplatePluginTableCaption">
</ng-container>
</ng-template>
<ng-template pTemplate="header" let-columns>
<!--HEADER-->
</ng-template>
<ng-template pTemplate="body" let-CRUDItem let-columns="columns">
<!--BODY WITH DATA-->
</ng-template>
</p-table>
I'm adding internalization to one of my projects, and facing the issue with eslint, *.ejs and i18n.
<li class="nav-item">
<a class="nav-link" href="/products">
<i class="ni ni-tv-2 text-primary"></i> <%= __('Products')%>
</a>
</li>
gives me the errors:
eslint: error
prettier/prettier - Replace `ยท__('Products')` with `__('Products');โ`
eslint: error
no-undef - '__' is not defined.
Trying to find some already existed integrations of eslint with i18n and ejs and no luck yet.
Any recommendations how to fix it?
PS. editor: sublime 3, lang: nodejs
I stored the image path in MongoDB but when I'm trying to get the image path into the src attribute of the img tag, it keeps inserting apostrophes at the beginning and the end of the image path.
<img src=โ{{ this.img }}โ alt="Alt text">
Viewed from Chrome Dev Tools:
<img src="'/img/thisisanimage.jpg'" alt="Alt text">
Any reason why this might be happening?
you should use it like this:
<img src="{{ img.src }}" alt="Image is broken" />
I have code which needs to load an mp3 file on being clicked and play it. However when I load the page it gives a 404 error like :
"NetworkError: 404 Not Found - http://localhost/main/styles/images/ABCD.mp3"
I am using the HTML5 audio tag and as far as the syntax is concerned it is fine as it is a simple code and I'm just trying right now. The file ABCD.mp3 does exist and has permissions as well. The code is as follows:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles/style.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="scripts/jquery.lightbox_me.js"></script>
<script src="scripts/popupCommon.js"></script>
<title>Popup contact form</title>
</head>
<body>
<!-- Element to pop up -->
<div class="element_to_pop_up">
<a class="b-close">x</a>
<!-- Popup Div Starts Here -->
<audio controls>
<source src="styles/images/ABCD.mp3">
</audio>
<!-- Popup Div Ends Here -->
</div>
<div id="my-button" class="boxbare" style="margin:0 2px;padding:2px;cursor:pointer;">
<div style="min-height:140px;text-align:center;"><img src="styles/images/play.png" /></div>
<div id="play" class="abut" style="width:120px;text-align:center;margin:0 auto;color:black;">play</div>
</div>
</body>
<!-- Body Ends Here -->
</html>
Please neglect the position of the file. I have kept it in the image folder just for trials and to ensure that I am placing the file in the right directory.
The list result on the terminal is as follows;
[root#localhost /]# cd /var/www/html/main/styles/images/
[root#localhost images]# ls -al ABCD.mp3
-rw-r--r-- 1 root root 35971 Jan 9 13:48 ABCD.mp3
[root#localhost images]#
Is there any important thing that I'm missing out here?
How can I use the tag and access mp3 files?
How can I generate this HTML using Jade
<a class="btn btn-primary btn-large" data-toggle="modal" href="#websiteModal">
<i class=" icon-map-marker icon-white"></i>
Configure for Website</a>
I tried
a.btn.btn-primary.btn-large(data-toggle="modal",href="#websiteModal") Configure for Website
i.icon-map-marker.icon-white
But it puts the <i> after "Configure for Website" text.
You can either do:
a.btn.btn-primary.btn-large(data-toggle="modal",href="#websiteModal")
i.icon-map-marker.icon-white
| Configure for Website
Or if you are feeling fancy:
a.btn.btn-primary.btn-large(data-toggle="modal",href="#websiteModal")='Configure for Website'
i.icon-map-marker.icon-white