I am using an entry which depends on how to add jQuery's entry to an overlay, depending on which The image is clicked which works well. But if no image is inserted then I want to remove the containerImage img
. This is the closest I got to click and remove empty tags, but I want to do it on page load.
$ (document) .ready (function () {var $ container = $ ("# container image img"); $ container.click (function () {if ($ container.ttR ("Src") === "") {$ (this) .remove ();} else {console.log ("not empty");}}};});
Here the HTML in the IMG tag is, I'm calling the images to go into the empty source
So the above example has only 2 images, I want to remove that box after leaving it with a 3 empty box and after filling the images.
Here is the code to fill images, as well as title and description
$ (document) .ready (function () {$ ('. BoxImage') Click (function () (var project = $ (this) .attr ('project'), description = $ (this) .attr ('description'), images = $ (this) .attr ('images'); $ ("Text"); $ ("projects description"). Text (description); var image array = images (such as ','); datloged (image array);}); function deferred (array) {// $ ('.gallery thumbnail'); $ thumbnail.ttr ('scom', ''); (var i = 0; i & lt; 5; i ++) {$ ('. Gallery thumbnail: eq (' + ' I '' '). Attr (' src ', array [i]);}}});
$ thumbnails.filter ("[src = '']") .remove ();
First of all, keep in mind that:
is an invalid closing tag for & lt; IMG & gt;
(IMG is a self-closing tag)
Image
, Description
, and project
are invalid HTML attributes. (Use the data - *
attributes)
& lt; Img src = "" class = "Boxing Gallery Thumbnail" & gt; & Lt; Img src = "" class = "Boxing Gallery Thumbnail" & gt; & Lt; Img src = "" class = "Boxing Gallery Thumbnail" & gt; & Lt; Img src = "image / image 1.jpg" class = "box image w2" data-project = "project title" data-description = "description" data-images = "pictures / 4.jpg, pictures / 5.jpg" & Gt; Click here (function () {var data = $ (this Data (); $ ("Projects"). Text (Data Pauses); $ ("Projects Description"). Text (Data Description); Datoded (Data.immes.plit (','));} $ Var (thumbnail); $ thumbnail = $ ('gallery thumbnail'); $ thumbnail.ttr ('scom', ''); for (var i = 0; i Now this is what I do not understand ... if you remove your images You do not have any src attribute dom ready , your script fills the reason for any image ... well, it has been removed .
Popular posts from this blog
I have written a simple httprequest / response code and I am getting this error below: I used to type in my classpath httpclient, httpcore, common -Codecs and general logging. I am very new to Java and I do not know what's going on here. Please help me. code: import org.apache.http.client.HttpClient; Import org.apache.http.client.methods.HttpGet; Import org.apache.http.HttpResponse; Import org.apache.http.impl.client.HttpClientBuilder; Import org.apache.http.Header; Import org.apache.http.HttpHeaders; Public class UnshorteningUrl {public static zero main (string [] args throws exception {HttpGet request = zero; HTTP Client Client = HTTP ClientBuilder.credit (). Build (); Try {Request = New HTTP Gate ("trib.me/1lBFzSi"); HttpResponse httpResponse = client.execute (request); Header [] header = httpResponse.getHeaders (HttpHeaders.LOCATION); // Preconditions.checkState (headers.length == 1); String new url = header [0] .getValue (); System.out.println ("new url...
I have a very strange situation with Powerbuilder 12.1. I have two issues that can be related - mainly because this is the exact same data window report. Problem # 1: You can not see the contents of Detavindo any and went nowhere, lost the ability to debug and display content Detavindo at runtime during the debug and runtime. But when you go into the data window in design mode, it prompts for the values of those parameters, the content is only displayed, it is okay. Edit: Solve. This is due to a powerbiller that uses an integer rather than a long variable. The identity identifier in the database exceeds the upper limit of a PowerBuilder 16-bit integer (32767). I updated the logic for longer use, and resolved this problem # 1. ISSUE # 2: When I run the report code using the same data window mentioned in issue # 1 above, in debug mode, to create a new report file, this work Done - only in DEBUG mode Runtime failure - I got an error -1 during the runtime for the exact same...
I ran into an awkward CSS problem in Chrome, I made a pen as an example: .flip {status: relative; Display: Inline-block; Vertical-alignment: top; Width: 90px; Height: 94px; Border: 4px solid white; } .flip .card {width: 100%; Height: 100%; Line-height: 86px; Text align: center; Webkit-conversion-style: protected-3D; -MOZ-Transform-Style: Protected-3D; -MMS-conversion-style: protection-3D; -O-conversion-style: protected-3D; Conversion-style: protection-3d; -WebKit-Infection: 0.5s; -Mozy-infected: 0.5s; -MM-Infection: 0.5s; -O-Infection: 0.5s; Infection: 0.5s; } .flip .card .face {width: 100%; Height: 100%; Z-index: 2; Font size: 1.5em; Webkit-Backfiest-Visibility: hidden; -MOZ-BACKEX-visibility: hidden; -MM-Backup-visibility: hidden; -O-Backfesses-visibility: hidden; Backfirst-visibility: hidden; } .flip .card .back a {display: block; White color; } I have created some div inside the hyperlinks. I have set the display mode to block, so the link should be spread across the ar...
|
Comments
Post a Comment